
js
wsf_123456
这个作者很懒,什么都没留下…
展开
-
jquery树形插件和vim编辑器win32
jquery树形插件和vim编辑器win32原创 2012-05-23 00:33:43 · 107 阅读 · 0 评论 -
dojo
dojo原创 2013-01-07 00:27:37 · 190 阅读 · 0 评论 -
你真的已经搞懂JavaScript了吗
题目一:if (!("a" in window)) { var a = 1;}alert(a);题目二:var a = 1, b = function a(x) { x && a(--x); };alert(a);题目三:function a(x) { return x * 2;}v...原创 2013-05-31 15:31:43 · 259 阅读 · 0 评论 -
模拟html的select控件
demo 地址 : http://dailylist.sinaapp.com/html_select/demo.html github :https://github.com/wangshaofei/html_select html代码:<!DOCTYPE html><html><head> <meta charset...2013-05-30 13:16:16 · 195 阅读 · 0 评论 -
js日期输入插件
This is the documentation of the new Dynarch Calendar (“JSCal2”). Note that it is not compatible with our old calendar project. The new calendar has less predefined ways to setup, and rather focuses o...原创 2013-05-27 10:41:19 · 154 阅读 · 0 评论 -
PHP & JQuery Photo Upload and Crop - DEMO
1. We will be using the session variable to hold the random file name (in our case the timestamp).We are now also storing the file extension that is passed through the script, to ensure we are deali...原创 2013-05-23 23:39:52 · 178 阅读 · 0 评论 -
详解 JavaScript 中的 this
其实如果完全掌握了this的工作原理,自然就不会走进这些坑。来看下以下这些情况中的this分别会指向什么:1.全局代码中的this 1alert(x);// 全局变量x值为2 全局范围内的this将会指向全局对象,在浏览器中即使window。2.作为单纯的函数调用 12345...原创 2013-05-09 23:32:15 · 127 阅读 · 0 评论 -
js中替换window.onload的方法 document.ready
通常我们想要在页面内容加载完成后运行 JS 时,都会使用 window.onload 来处理,比如: <script language="javascript"> window.onload = function () { alert('Hello World!'); } </script> ...原创 2013-05-01 22:52:44 · 187 阅读 · 0 评论 -
ie下如何获得事件源对象
document.body.onclick = function(e){ e = e || window.event; t = e.target || e.srcElement; var url = t.href; load_page(url); }; window.onload = functi...原创 2013-04-30 23:04:25 · 337 阅读 · 0 评论 -
什么是js的闭包?
摘要:“如果你不能向一个六岁的孩子解释清楚,那么其实你自己根本就没弄懂。”好吧,我试着向一个27岁的朋友就是JS闭包(JavaScript closure)却彻底失败了。 越来越觉得国内没有教书育人的氛围,为了弄懂JS的闭包,我使出了我英语四级吃奶的劲去google上搜寻着有关闭包的解释,当我看到stackoverflow上这一篇解答,我脑中就出现了一句话:就是这货没跑了!...原创 2012-10-29 16:16:09 · 102 阅读 · 0 评论 -
=== 的意思
1、=:赋值,在逻辑运算时也有效;2、==:等于运算,但是不比较值的类型;3、===:完全等于运算,不仅比较值,而且还比较值的类型,只有两者一致才为真。...原创 2012-10-26 14:57:43 · 329 阅读 · 0 评论 -
正则表达式1
/^(?=.*[0-9].*)(?=.*[a-z].*)(?=.*[A-Z].*)(?=.*[?!_#=@*&].*)[a-z0-9A-Z?!_#=@*&]{6,20}$/.test("10Aa_123")匹配有且只有数子大写和小写字母和部分特殊字符原创 2012-07-06 16:51:12 · 163 阅读 · 0 评论 -
征服Ajax - Web20开发技术详解试读版.pdf
征服Ajax - Web20开发技术详解试读版.pdf原创 2012-06-08 19:00:21 · 160 阅读 · 0 评论 -
js输出浏览器对象和生成日志的方法
<script type="text/javascript"> function onmousedown(event) { var content = document.getElementById("ss"); var output = event.type + ": <ul>"; for (property in event) {...2012-06-03 02:30:50 · 297 阅读 · 0 评论 -
气泡样式的写法
function fillNoticeTable(jsoni){ var cloneTr = $("#firstTr:first").clone(true); $("#noticeListTable").append(cloneTr); cloneTr.show(); //画的时候需要画样式。 //消息通知详情 var noticeInfo = jsoni.no...2012-06-02 17:30:15 · 216 阅读 · 0 评论 -
js和html模拟系统的ip地址输入框
<script>//e为 event o为input对象 i 为 第几个输入框function ipVali(e,o,i) //48-57 96-105 223 255 key Code== 8 退格键{ //alert(e.keyCode) // 96-105 小键盘数字键 48-57大键盘数字键 8 退格键 46 del键 16 shift键 116...2012-06-02 13:34:05 · 1572 阅读 · 0 评论 -
editplus工具:js文件美化
1 安装editplus2 安装python3 安装python的easy_install包 参考 http://www.pip-installer.org/en/latest/installing.html4 安装jsbeautifier : easy_install jsbeautifier5 测试 python jsbeautify file.js6 集成到ed...原创 2013-11-14 00:07:41 · 697 阅读 · 0 评论