摘要: 阅读全文
posted @ 2017-02-09 11:45 terytang 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 如原地址为: http://127.0.0.1:8000/CodeIgniter-3.0.0/index.php/routes_demo 隐藏入口文件后只需要把地址写成即可: http://127.0.0.1:8000/CodeIgniter-3.0.0/routes_demo 1.需要开启Apac 阅读全文
posted @ 2016-11-02 11:35 terytang 阅读(626) 评论(0) 推荐(0) 编辑
摘要: Heredoc技术,在正规的PHP文档中和技术书籍中一般没有详细讲述,只是提到了这是一种Perl风格的字符串输出技术。但是现在的一些论坛程序,和部分文章系统,都巧妙的使用heredoc技术,来部分的实现了界面与代码的准分离,phpwind模板就是一个典型的例子。原文http://www.php100 阅读全文
posted @ 2016-10-15 09:32 terytang 阅读(747) 评论(0) 推荐(0) 编辑
摘要: 1.配置httpd.conf 禁用词语多个端口# Listen: Allows you to bind Apache to specific IP addresses and/or# ports, instead of the default. See also the <VirtualHost># 阅读全文
posted @ 2016-10-09 17:16 terytang 阅读(1646) 评论(0) 推荐(0) 编辑
摘要: 1.安装Ruby 2.下载sass安装包。放入文件夹,最好放入bin中。(被墙了,只好本地装) 3.从ruby的命令行安装本地的安装包 sass安装好了。 阅读全文
posted @ 2016-10-05 15:49 terytang 阅读(358) 评论(0) 推荐(0) 编辑
摘要: 1.首先在遍历数组进行绑定onclick事件的时候,把当前的i传入事件函数中,并保存下来了。2.把换行去掉后,在看看当前绑定的函数lis.onclick=(function(i){return function(){alert(i);};})(i)3.当点击对应li元素的时候,事件函数返回一个fun 阅读全文
posted @ 2016-09-28 16:13 terytang 阅读(637) 评论(0) 推荐(0) 编辑