摘要: 当smarty开启缓存时,当tpl文件内容改变时,则缓存页面会重新生成test.php:caching = true; $_smarty->assign('name','测试缓存'); $_smarty->display('test.tpl');?>1 test.tpl:2 3 4 ... 阅读全文
posted @ 2014-12-25 11:17 终于还 阅读(500) 评论(0) 推荐(0) 编辑
摘要: 这里分两种情况来介绍1、in 后面是记录集,如:select * from table where uname in(select uname from user); 2、in 后面是字符串,如:select * from table where uname in(... 阅读全文
posted @ 2014-12-06 09:11 终于还 阅读(45859) 评论(0) 推荐(0) 编辑
摘要: table a(id, type):id type----------------------------------1 1 2 1 3 2 table b(id, class):id class-------... 阅读全文
posted @ 2014-11-20 01:31 终于还 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 1 2 3 4 $_POST结果为: 5 Array 6 ( 7 [a] => Array 8 ( 9 [0] => 1 10 [1] => 2 11 [2] => 3 1... 阅读全文
posted @ 2014-11-08 01:37 终于还 阅读(934) 评论(0) 推荐(0) 编辑
摘要: 做页面的时候可能会用到位置固定的层,读取document.body.scrollTop来设置层的位置,像这样,window.onscroll=function () {var oId=document.getElementByIdx_x("id");oId.style.top=document.bo... 阅读全文
posted @ 2014-06-05 21:40 终于还 阅读(622) 评论(0) 推荐(0) 编辑
摘要: 外连接:left join(左联接) left outer join 返回包括左表中的所有记录和右表中联结字段相等的记录right join(右联接) right outer join返回包括右表中的所有记录和左表中联结字段相等的记录full join 或 full outer join 完整外部联... 阅读全文
posted @ 2014-04-25 11:06 终于还 阅读(563) 评论(0) 推荐(0) 编辑
摘要: 修改UE的背景色:高级-配置-编辑器显示-其它-设置颜色新增扩展名语法着色:如以tpl为后缀的html代码格式着色高级-配置-编辑器显示-语法着色-语言选言[选中要着色的语言html]-打开-在'File Extensions'里添加TPL,保存即可某一种语言如php的大括号{}自动对齐:需要修改二处(1)、高级-配置-编辑器显示-格式化【右边全勾上】(2)、高级-配置-编辑器显示-语法着色-选择语言[php]-打开:找到/Indent Strings = "{"/Unindent Strings = "}"把后面那个"{&qu 阅读全文
posted @ 2014-03-29 11:42 终于还 阅读(748) 评论(0) 推荐(0) 编辑
摘要: @media screen and (-webkit-min-device-pixel-ratio:0) {ul#navUL ul a{padding:8px 2px;word-break:keep-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.navli{color:#f00}} 阅读全文
posted @ 2014-03-13 10:21 终于还 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 1 2 3 test 4 5 function AddFavorite(sURL, sTitle) 6 { 7 try 8 { 9 window.external.addFavorite(""+sURL+"",""+sTitle+""); 10 11 } 12 catch (e) 13 { 14 try 15 { 16 ... 阅读全文
posted @ 2014-03-12 12:16 终于还 阅读(733) 评论(0) 推荐(0) 编辑
摘要: ob_get_contents()函数及与其相关几个函数的用法ob_start()ob_get_contents(); 获取缓冲区内容,如果是纯 html内容或标签,则都会放于浏览器的缓冲区中。 如果将ob_get_contents()获取到的缓冲区的内容赋给一个文件,则缓冲区里的内容会覆盖文件里之前的内容ob_end_clean():删除内部缓冲区的内容,并且关闭内部缓冲区[删除运行ob_end_clean()此函数 之前的所有echo print_r输出到缓冲区的内容;删除ob_end_clean()此函数 之前的html内容或标签;定义的变量依然存在]ob_end_flush() 发送内 阅读全文
posted @ 2014-03-07 13:03 终于还 阅读(306) 评论(0) 推荐(0) 编辑