06 2014 档案
摘要:在template.tpl中添加如下代码:function lee_preprocess_node(&$variables) { if ($variables['view_mode'] == 'full' && node_is_page($variables['node'])) { $var...
阅读全文
摘要:(1)页面下载过程要干的事情页面parse完毕----DOMContentLoaded(DOM树建立完毕)----onload(全部资源下完,图片,iframe,flash这些)注意js脚本要下载并执行完毕,dom树才能出来,因为script标签也属dom的一部分,同时因为js也许有dom的操作,所...
阅读全文
摘要:易企cms默认版本能获取指定分类的所有产品,但是不能获取指定的个数,为了能够获取指定的个数,我找到了GetProductList方法进行了改进:1.找到根目录下的include/product.class.php文件搜索关键字"GetProductList"将GetProductList方法替换为如...
阅读全文
摘要:"zhangsan",'age'=>20,'sex'=>"m"), array('name' =>"lishi",'age'=>21,'sex'=>"w"), array('name' =>"wangwu",'age'=>21,'sex'=>"w"), ); ...
阅读全文
摘要:我想很多新手用drupal做网站时像我一样遇到一个看似简单却让我很棘手的问题,就是用户的头像地址读取不出来,使用//结果中picture是 [picture] => 3 没办法在drupal群中向各位求教:@[上海]闲人给出了正解:uid); echo $account->picture->u...
阅读全文
摘要:// While you can edit this file, it's best to put your changes in// "User/Preferences.sublime-settings", which overrides the settings in here.//// Set...
阅读全文
摘要:var add=function (a,b){ return(a+b);}var sub=function (a,b,c){ return(a-b-c);}sub.call(add,1,2,3)//示例的意思时指用sub对象来替换add对象,并传入参数//使用call来实现继承function ...
阅读全文

浙公网安备 33010602011771号