摘要: 这里我直接上代码: 框架的核心我定义了一个全局变量数组$_W,这里存放一些配置文件及后台设置等,有利于我们提取 阅读全文
posted @ 2017-10-21 19:26 一碗范特西 阅读(289) 评论(0) 推荐(0) 编辑
 
摘要: 我觉得程序员进步的理由:多看->多写->多总结 我自我介绍下,我不是程序员,但是我爱编程,作为业余程序员自己写框架让人感到兴奋的,目前有很多框架(js有jQuery、Express、socket.io.js等;PHP有phpword、Yii、laravel;html里面有bootstrap、boot 阅读全文
posted @ 2017-10-21 19:24 一碗范特西 阅读(309) 评论(0) 推荐(0) 编辑

2018年11月2日

摘要: 从这一个文件开始以后加载的均以类加载,请注意命名空间和所在文件的路径 APP.php的这个类所在路径:根目录\framework\App.php 直接上代码 代码里面的Config.php和Hook.php跟App.php 在同一个目录 Config.php为配置文件 Hook.php为钩子文件(什 阅读全文
posted @ 2018-11-02 10:22 一碗范特西 阅读(173) 评论(0) 推荐(0) 编辑

2018年6月10日

摘要: 开启本地代理 本地目录结构: Nginx 配置: package.json 的 script 增加: 在项目下增加一个 nginx 目录。 证书生成 $ openssl genrsa -des3 -out server.key 2048 以上命令是基于des3算法生成的rsa私钥,在生成私钥时必须输 阅读全文
posted @ 2018-06-10 21:03 一碗范特西 阅读(110) 评论(0) 推荐(0) 编辑
 
摘要: /***** Selector Hacks ******/ /* IE6 and below */ * html #uno { color: red } /* IE7 */ *:first-child+html #dos { color: red } /* IE7, FF, Saf, Opera */ html>body #tres { color: red } /* IE8... 阅读全文
posted @ 2018-06-10 20:57 一碗范特西 阅读(84) 评论(0) 推荐(0) 编辑
 
摘要: 常用JS代码 阅读全文
posted @ 2018-06-10 20:03 一碗范特西 阅读(108) 评论(0) 推荐(0) 编辑

2017年9月4日

摘要: 1、文本框、密码框、隐藏域、文本域(id换成对应的,value属性存在,才能利用attr(‘value’) 获取值,否则返回undefined): 1.1 获取—>$(“#text”).val()或者$(“#text”).attr(‘value’) 1.2 设置—>$(“#text”).val(‘test’)或者$(“#text”).attr(‘value’,’test’) 2、按钮:普通... 阅读全文
posted @ 2017-09-04 22:26 一碗范特西 阅读(117) 评论(0) 推荐(0) 编辑

2017年7月28日

摘要: { // Custom snippets definitions, as per https://github.com/emmetio/emmet/blob/master/snippets.json "snippets": { "html": { "snippets": { "myfavicon": "\n\n", "bscss3":"", "mycompat": "\n\n", "360com... 阅读全文
posted @ 2017-07-28 18:14 一碗范特西 阅读(104) 评论(0) 推荐(0) 编辑

2017年7月9日

摘要: /***************************************************************** 表单校验工具类 (linjq) *****************************************************************/ /** * 判断整数num是否等于0 ... 阅读全文
posted @ 2017-07-09 15:51 一碗范特西 阅读(129) 评论(0) 推荐(0) 编辑
 
摘要: // 0 if(undefined) { console.log('1'); } else { console.log('0'); } // 0 if(null) { console.log('1'); } else { console.log('0'); } // 0 if('') { console.log('1'); } else { c... 阅读全文
posted @ 2017-07-09 15:44 一碗范特西 阅读(96) 评论(0) 推荐(0) 编辑