随笔分类 - Flash/As/PHP
摘要:location / { if (!-e $request_filename) { rewrite ^/(.*\.(js|ico|gif|jpg|png|css|bmp|html|xls)$) /$1 last; rewrite ^/(\?\?.*\.(js|css...
阅读全文
摘要:下载http://smarty.net;解压 -> 将 libs 文件夹重命名 smartyLibs -> 放置在自己服务器的 usr/local/lib/ 中 (/usr/local/lib/smartyLibs);在网站目录,如 site_A 中 创建 4 个必须文件夹 templates、te...
阅读全文
摘要:1、Vim打开Nginx配置文件vim /usr/local/nginx/conf/nginx.conf2、找到如下一段,进行修改gzip on;gzip_min_length 1k;gzip_buffers 4 16k;#gzip_http_version 1.0;gzip_comp_level ...
阅读全文
摘要:{%foreach $tplData.cntbox as $cntBox%} <div class="op-wisesoft-tab{%$cntBox.inmain%}-{%$cntBox.insub%}"> {%foreach $tplData["app`$cntBox.inmain``$cntBox.insub`"] as $app%} <a href="{%$app.link%}" target="_blank">{%$app.title%}</a> {%/foreach%
阅读全文
摘要://保留小数点后2位,四舍五入{%assign var="distKM" value="100.345"%}{%$distKM|string_format:"%.2f"%}//echo:100.35
阅读全文
摘要://获取字符串长度 strlen($abc);//替换字符串中的字符 strtr($abc,'-','-');//拆分字符串 explode("-",$abc);//编码字符串 urlencode($abc);//格式化日期 date('Y-m-d',strtotime($abc));//判断当前日期和指定日期相差几天 (strtotime($today)-strtotime($gd))/3600/24;//UTF-8编码下全角符号替换成半角$tags = "0123ABCDFWS\",.?<>{}[]*&^%#@!
阅读全文
摘要:AS里面这样写:html里面这样写:
阅读全文
摘要:System.setClipboard( "Hello world " );
阅读全文
浙公网安备 33010602011771号