上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 17 下一页
摘要: .offset()是相对于文档(document)的当前位置,.position()是相对于父级元素的位移,一个元素可以嵌套多个position 阅读全文
posted @ 2016-08-09 14:50 blogging 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 1、安装msysgit和TortoiseGit ; 2、TortoiseGit 设置: (1)、确保安装成功: (2)、设置用户名和邮箱: 3、登陆github并进入设置页面: 4、添加 SSH Key: 5、通过TortoiseGit生成SSH key: 点击 Save private key 保 阅读全文
posted @ 2016-08-09 11:22 blogging 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 修改注册表的方法: 1.点击左下角开始菜单 - 运行(输入regedit)- 确定或者回车; 2.在打开的注册表中找到:HKEY_CLASSES_ROOT,并点HKEY_CLASSES_ROOT前面的小三角;找到Directory,点击前面的小三角;找到Background,点击前面的小三角;打开s 阅读全文
posted @ 2016-08-08 08:35 blogging 阅读(3808) 评论(0) 推荐(2) 编辑
摘要: 在插件目录plugins里新建文件 block.插件名.php文件(如 block.插件名.php) 例:block.test2.php 在tpl中新建content.html index.php 运行结果: 阅读全文
posted @ 2016-08-04 17:08 blogging 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 在插件目录plugins里新建文件 modifier.插件名.php文件(如 modifier.插件名.php)例:function smarty_modifier_test($utime, $format){return date($format,$utime);}tpl中新建datetime.h 阅读全文
posted @ 2016-08-04 16:41 blogging 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 创建Smarty插件:在插件目录(plugins)里新建文件 类型.插件名.php文件,然后插件方法名字书写规范: smarty_类型_插件名([...]){}在模板(tpl文件)中调用插件时格式{插件名 参数1=* 参数2=*}例:Function.test.php //文件名<?phpfunct 阅读全文
posted @ 2016-08-04 16:24 blogging 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 1.把字符串里的d字母替换成h格式:{'d'|str_replace:'h':$str}; d要查找的字符 h要替换的字符 $str字符串 2.function test($param){$p1=$param['p1'];$p2=$param['p2'];return '参数1:'.$p1.'参数2 阅读全文
posted @ 2016-08-04 11:53 blogging 阅读(194) 评论(0) 推荐(0) 编辑
摘要: <?phprequire_once('../smarty/Smarty.class.php');//配置信息$smarty=new Smarty();$smarty->left_delimiter="{";$smarty->right_delimiter="}";$smarty->template_ 阅读全文
posted @ 2016-08-04 11:25 blogging 阅读(346) 评论(0) 推荐(0) 编辑
摘要: (1)include用法和php里的include差不多(2)smarty的include还具备自定义属性的功能例如 {include file="header.tpl" title="网站标题" table_bgcolor="c0c0c0"}{include file="header.tpl" s 阅读全文
posted @ 2016-08-04 11:16 blogging 阅读(330) 评论(0) 推荐(0) 编辑
摘要: (1)section、sectionelse功能多,参数多。或许不是太实用。是smarty用来做循环操作的函数之一。(2)了解基本属性name和loop <section name=article loop=$articlelist>{$articlelist[article].title}{$ar 阅读全文
posted @ 2016-08-04 11:00 blogging 阅读(170) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 17 下一页