随笔分类 -  js/jquery/css

摘要:What is JSONP ?http://stackoverflow.com/questions/2067472/what-is-jsonp-all-aboutWhat is CORS?http://www.html5rocks.com/en/tutorials/cors/more :http:/... 阅读全文
posted @ 2015-07-10 23:37 lein.wang 阅读(256) 评论(0) 推荐(0)
摘要:http://www.cnblogs.com/rubylouvre/archive/2011/03/18/1984336.htmlhttp://www.cnblogs.com/hustskyking/p/javascript-asynchronous-programming.htmlhttp://c... 阅读全文
posted @ 2015-06-10 16:36 lein.wang 阅读(165) 评论(0) 推荐(0)
摘要:为什么要对字符串编码?某些字符串中包含html标签,不编码,页面输出就乱了。PHP下怎么对字符串编码?htmlentities vshtmlspecialcharshtmlentities 与htmlspecialchar 区别:htmlentitiesis identical tohtmlspec... 阅读全文
posted @ 2014-11-25 11:35 lein.wang 阅读(367) 评论(0) 推荐(0)
摘要:点击打开链接http://stackoverflow.com/questions/10964966/detect-ie-version-in-javascript (function ($) { "use strict"; // Detecting I... 阅读全文
posted @ 2014-11-04 13:52 lein.wang 阅读(118) 评论(0) 推荐(0)
摘要://必须先清除原有的事件$(dom).attr("onclick", "");//再重新绑定新的事件$(dom).bind("click", function() {//do something;});IE8 /chrome 验证通过下面有个链接号称也可以,但是没成功,供参考吧:点击打开链接http... 阅读全文
posted @ 2014-11-04 12:33 lein.wang 阅读(257) 评论(0) 推荐(0)
摘要:http://www.cnblogs.com/sorex/archive/2011/06/30/2093499.html点击打开链接 阅读全文
posted @ 2013-11-01 17:20 lein.wang 阅读(242) 评论(0) 推荐(0)
摘要:收录几篇文章点击打开链接http://luxiao1223.blog.51cto.com/2369118/482885点击打开链接http://mao.li/javascript/javascript-callback-function/点击打开链接http://www.phpv.net/html/... 阅读全文
posted @ 2013-04-24 22:39 lein.wang 阅读(112) 评论(0) 推荐(0)
摘要:http://blog.csdn.net/xiaosu_521/article/details/2160458我下载的是二进制包,然后把路径放到path变量 阅读全文
posted @ 2013-02-19 16:45 lein.wang 阅读(98) 评论(0) 推荐(0)
摘要:1. HTML 事件处理程序<a onclick="show()" ...function show(){......}a 点之前还要求show函数已经加载。2. DOM 0 事件处理程序var a = document.getElementById("a");a.onclick = functio... 阅读全文
posted @ 2013-02-19 16:44 lein.wang 阅读(123) 评论(0) 推荐(0)
摘要:单引号/双引号问题时,用这个。http://www.spiger.cn/article/215.html 阅读全文
posted @ 2013-02-04 12:36 lein.wang 阅读(105) 评论(0) 推荐(0)
摘要:menifest.json{ "name": "Message Timer", "version": "1.2", "description": "Times how long it takes to send a message to a content script and back.",... 阅读全文
posted @ 2013-01-24 13:56 lein.wang 阅读(228) 评论(0) 推荐(0)
摘要:http://www.cnblogs.com/0banana0/archive/2011/11/02/2233410.html 阅读全文
posted @ 2013-01-21 09:56 lein.wang 阅读(81) 评论(0) 推荐(0)
摘要:http://dev.chromechina.com/forumdisplay.php?fid=30&page=1http://open.chrome.360.cn/extension_dev/overview.html 阅读全文
posted @ 2012-12-28 14:32 lein.wang 阅读(108) 评论(0) 推荐(0)
摘要:http://www.cnblogs.com/86188281/archive/2009/03/12/1409821.html 阅读全文
posted @ 2012-12-18 16:40 lein.wang 阅读(97) 评论(0) 推荐(0)
摘要:http://snandy.iteye.com/blog/615216 阅读全文
posted @ 2012-11-16 11:23 lein.wang 阅读(94) 评论(0) 推荐(0)
摘要:innerHTML createElement createTextNode 比较:innerHTML / outerHTML 只是一项专利,不是业界标准,尽管很好用.createElement / createTextNode 是 DOM提供的标准方法,但是要写好多代码。示例:function m... 阅读全文
posted @ 2012-10-16 14:42 lein.wang 阅读(123) 评论(0) 推荐(0)
摘要:Math.random() 返回介于0和1之间的一个随机数, 0.0712383823728837....如果想获得一个整数范围随机值值 = Math.floor( Math.random() * 数目 + 第一个可能的值);function selectFrom(lower,upper){ v... 阅读全文
posted @ 2012-09-18 14:15 lein.wang 阅读(107) 评论(0) 推荐(0)
摘要:js的包装类型有三种:String Boolean Number目的:为了便于操作基本类型值var s = new String("ssssssss");var s = "ssssss";var b = new Boolean(true);var b = false;var n = new Numb... 阅读全文
posted @ 2012-09-14 16:16 lein.wang 阅读(93) 评论(0) 推荐(0)
摘要:栈行array push尾部插入,pop尾部弹出。队列array push尾部插入,shift头部取出,unshift头部插入。 阅读全文
posted @ 2012-09-11 22:39 lein.wang 阅读(121) 评论(0) 推荐(0)
摘要:一旦数据不再有用,最好通过将其值设置为null来释放其引用-----这个做法叫做解除引用。这一做法适用于大多数全局变量和全局变量的属性。局部变量会在他们离开执行环境时自动被解除引用。function a(){}var b = a();//手动解除b的引用b = null 阅读全文
posted @ 2012-09-09 18:47 lein.wang 阅读(666) 评论(0) 推荐(0)