摘要: 学习起因: 在之前的JavaScript学习中,this,call,apply总是让我感到迷惑,但是他们的运用又非常的广泛。遂专门花了一天,来弄懂JavaScript的this,call,apply。 中途参考的书籍也很多,以《JavaScript设计模式与开发实践》为主,《JavaScript高级 阅读全文
posted @ 2017-11-16 10:46 nini_x 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://www.jb51.net/article/61694.htm 关于jQuery插件的开发自己也做了少许研究,自己也写过多个插件,在自己的团队了也分享过一次关于插件的课。开始的时候整觉的很复杂的代码,现在再次看的时候就清晰了许多。这里我把我自己总结出来的东西分享出来,帮助那些和我 阅读全文
posted @ 2017-11-16 10:41 nini_x 阅读(267) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>input-img</title> <meta name="viewport" content="width=device-width,initial-scal 阅读全文
posted @ 2017-11-09 15:51 nini_x 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 既然提到这了,那我们就分析下下面的URL: http://www.example.com:8080/test.php?user=admin&pwd=admin#login 想得到整个如上的完整url,我们用:location.href; 得到传输协议http:,我们用:location.protoc 阅读全文
posted @ 2017-11-09 11:06 nini_x 阅读(381) 评论(0) 推荐(0) 编辑
摘要: 原文链接:http://caibaojian.com/selectivizr.html 之前的两篇文章中讲到了如何让IE支持css3媒体查询,这篇文章是主要讲的是如何在IE6~IE8中使用css3的选择器。· Selectivizr是一个JS文件,你只需要引入如JQuery、Mootools、Pro 阅读全文
posted @ 2017-11-09 10:50 nini_x 阅读(200) 评论(0) 推荐(0) 编辑
摘要: Respond.js让IE6-8支持CSS3 Media Query。 Bootstrap里面就引入了这个js文件,从名字看出来是自适应的兼容。打开IE看了一下,效果挺好的,自适应的效果挺好的。Respond.js让不支持CSS3 Media Query的浏览器包括IE6-IE8等其他浏览器支持查询 阅读全文
posted @ 2017-11-09 10:46 nini_x 阅读(1706) 评论(0) 推荐(0) 编辑
摘要: function GetQueryString(name){ var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if(r!=null) 阅读全文
posted @ 2017-11-09 10:42 nini_x 阅读(121) 评论(0) 推荐(0) 编辑
摘要: JSON和JS对象之间的互转 1. jQuery插件支持的转换方式 $.parseJSON( jsonstr ); //jQuery.parseJSON(jsonstr),可以将json字符串转换成json对象 2. 浏览器支持的转换方式(Firefox,chrome,opera,safari,ie 阅读全文
posted @ 2017-09-29 14:26 nini_x 阅读(339) 评论(0) 推荐(0) 编辑
摘要: 1.打开vhosts.conf 文件 <VirtualHost _default_:3336>DocumentRoot "D:\phpStudy\WWW\hw-hcc-api" <Directory "D:\phpStudy\WWW\hw-hcc-api"> Options -Indexes +Fo 阅读全文
posted @ 2017-07-18 17:49 nini_x 阅读(2048) 评论(0) 推荐(0) 编辑
摘要: 1.打开phpstudy xdebug 扩展 2.修改php.ini [XDebug]xdebug.profiler_output_dir="D:\phpStudy\tmp\xdebug"xdebug.trace_output_dir="D:\phpStudy\tmp\xdebug"zend_ext 阅读全文
posted @ 2017-07-18 17:47 nini_x 阅读(477) 评论(1) 推荐(0) 编辑