填坑铺路20160921

前端之家收集整理的这篇文章主要介绍了填坑铺路20160921前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
  • iterm2 Display all 1700 possibilities? what does it mean ??\
    ;

Hitting TAB key helps you to auto complete either a command or a file/directory (as long as it is executable) you want to use,depending on what you are requesting.

Double hitting the TAB key helps you displaying the available stuff you could use for next.

Searching 12626 files for "$smarty->left_delimiter ="

/Users/bjhl/pro/m-site/mock/bootstrap.PHP:
57 $smarty->setCompileDir(CACHE_DIR);
58
59: $smarty->left_delimiter = '{{ ';
60 $smarty->right_delimiter = ' }}';
61

/Users/bjhl/pro/m-site/mock/smarty/sysplugins/smarty_internal_debug.PHP:
159 $smarty->default_modifiers = array();
160 $smarty->force_compile = false;
161: $smarty->left_delimiter = '{';
162 $smarty->right_delimiter = '}';
163 $smarty->debugging = false;

2 matches across 2 files

然后我想尝试在每个业务 PHP 文件里面 change delimiter 到 default...而不是{{ }}:

$smarty->left_delimiter = '{{ ';
$smarty->right_delimiter = ' }}';

但是会有:

Warning: Creating default object from empty value in /Users/bjhl/pro/m-site/mock/Activity/poetry/detail.PHP on line 5

额,忽略了我的赋值,是我写的地方不对嘛??empty value??难道要像 bootstrap.PHP 那样创建 smarty 函数嘛??难道我想改回默认的 delimiter,的另一个办法是创建bootstrap0.PHP类似这样的文件?刚刚尝试了一下没有用呀...

  • 以后如果要在 js 文件之外写 console.log(...),没有快捷键的话(复制粘贴除外)那么就用 alert(...)来做替代...

  • style 标签里面不能嵌套,只能 '逐级' 书写.

  • 同时声明多个变量主要带来的问题是可读性差,声明的位置应该恰当猜对,而不是堆在一起声明,这不是 C 语言,所以说这样可维护性很差.

  • 好像 body 不能监听 scroll 事件...window 或者 iframe 可以监听;

  • 今天发现一个发版问题,是因为端口重复问题...找 OP 然后说是 cnpm 和 npm 的问题...build脚本的问题...

events.js:72 
throw er; // Unhandled 'error' event 
^ 
Error: read ECONNRESET 
at errnoException (net.js:905:11) 
at Pipe.onread (net.js:559:19) 
sending incremental file list 
created directory bdg-m-fe-compiled-release_bdg_m_v0.2.4.3 
原文链接:https://www.f2er.com/note/421439.html

猜你在找的程序笔记相关文章