js多线程?
摘要:http://www.cnblogs.com/o--ok/archive/2012/11/04/JS.html http://blog.csdn.net/nx8823520/article/details/7513098
阅读全文
posted @
2016-02-18 09:05
silentjesse
阅读(185)
推荐(0)
JavaScript获取DOM元素位置和尺寸大小
摘要:在一些复杂的页面中经常会用JavaScript处理一些DOM元素的动态效果,这种时候我们经常会用到一些元素位置和尺寸的计算,浏览器兼容性问题也是不可忽略的一部分,要想写出预想效果的JavaScript代码,我们需要了解一些基本知识。基础概念为了方便理解,我们需要了解几个基础概念,每个HTML元素都有...
阅读全文
posted @
2015-10-24 22:50
silentjesse
阅读(276)
推荐(0)
event.keyCode与event.which
摘要://Netscape/Firefox/Opera中不支持 window.event.keyCode,需要用event.which代替//IE用event.keCode方法获取当前被按下的键盘按键值,//而NetScape/FireFox/Opera用的则是event.which例:
阅读全文
posted @
2014-11-19 10:04
silentjesse
阅读(2021)
推荐(2)
javascript变量声明 及作用域
摘要:javascript变量声明提升(hoisting)http://openwares.net/js/javascript_declaration_hoisting.html 可能要FQ一下javascript的变量声明具有hoisting机制,JavaScript引擎在执行的时候,会把所有变量的声明...
阅读全文
posted @
2014-10-14 15:37
silentjesse
阅读(48629)
推荐(15)
js合并.css合并工具
摘要:http://www.neoease.com/css-javascript-combo-tool/http://www.neoease.com/minimize-javascript-files-using-ycombo/
阅读全文
posted @
2014-08-19 08:56
silentjesse
阅读(365)
推荐(0)
什么是BOM头
摘要:什么是BOM头?BOM头是放在UTF-8编码的文件的头部的,占用三个字节,用来标识该文件属于UTF-8编码。现在已经有很多软件识别BOM头,但是还有些不能识别BOM头,比如PHP就不能识别BOM头,这也是用记事本编辑UTF-8编码后执行就会出错的原因了。如何去掉BOM头?去掉BOM头的办法,最简单就...
阅读全文
posted @
2014-08-18 11:26
silentjesse
阅读(10433)
推荐(0)
jqgrid api
摘要:http://www.cnblogs.com/onflying/archive/2013/05/14/3077505.html
阅读全文
posted @
2014-06-05 17:43
silentjesse
阅读(178)
推荐(0)
jquery.fileupload插件 ie9下不支持上传
摘要:根据https://github.com/blueimp/jQuery-File-Upload/wiki/Browser-supportThe following browsers support at least one form ofAJAXstyle file uploads, either ...
阅读全文
posted @
2014-06-05 14:20
silentjesse
阅读(18999)
推荐(0)
javascript深入理解js闭包
摘要:http://www.jb51.net/article/24101.htm
阅读全文
posted @
2014-04-04 12:44
silentjesse
阅读(134)
推荐(0)
JavaScript 闭包
摘要://JavaScript闭包var array = [1, 2, 3];var funcs = new Array(3);for (var i in array) { var tmp = array[i]; funcs[i] = function () { return tmp; }} alert(funcs[0]());会输出3!原因是JavaScript中函数中的所有变量声明作用域都是在整个函数中的。因此这个tmp就是这个函数域中的全局变量,当for循环运行完毕后,tmp就是3了。funcs数组中的所有函数对象返回值都会是3。那么怎样解决JavaScript...
阅读全文
posted @
2014-02-12 13:45
silentjesse
阅读(188)
推荐(0)
js正则表达式
摘要:Email 验证function checkEmail(str) { var myReg = /^[-._A-Za-z0-9]+@([_A-Za-z0-9]+\.)+[A-Za-z0-9]{2,3}$/; if (myReg.test(str)){ return true; }return false;}
阅读全文
posted @
2013-08-07 10:50
silentjesse
阅读(264)
推荐(0)
javascript 之牛人感悟,必看学习
摘要:http://www.cnblogs.com/leadzen/
阅读全文
posted @
2012-01-31 17:02
silentjesse
阅读(209)
推荐(0)
jQuery中添加自定义或函数方法
摘要:方法一:jQuery.fn.setApDiv=function () { //TODO} 调用方法:$("#apDiv").setApDiv(); --------------------------------------------------------------------------------方法二: //jQuery 应用扩展 jQuery.extend({ // 定义setApDiv setApDiv:function () { //TODO } ...
阅读全文
posted @
2011-11-10 13:12
silentjesse
阅读(2616)
推荐(0)
javascript 之 浏览器宽度、高度总结
摘要://alert(window.screen.availHeight );//ie可见高度//firefox的整个浏览器的高度(包括工具栏) //alert(document.body.scrollHeight );//ie 的所有高度 //firefox的可见高度 //alert(document...
阅读全文
posted @
2011-11-10 12:44
silentjesse
阅读(262)
推荐(0)