javascript
stoneii
这个作者很懒,什么都没留下…
展开
-
js操作input file
jquery获取input file的val()时只能获取其名称,连路径都不能获取,也不能直接设值 在ie下可以获取路径 有一些方法可以清空值,至于能否设值没有研究过...原创 2013-05-11 18:15:00 · 690 阅读 · 0 评论 -
Uncaught TypeError: undefined is not a function js
原来是js对象名和对象定义名重了原创 2013-09-22 19:28:54 · 271 阅读 · 0 评论 -
jquery live hover
jquery元素直接给live绑定hover无效果将hover直接换成'mouseover mouseout'也无效果live非json形式一次只能绑定一个函数可用方法1$("table tr").live({ mouseenter: function() { //todo }, mouseleave: functio...2013-08-07 17:36:54 · 91 阅读 · 0 评论 -
js cookie
有些变量未定义function getcookief(name, nounescape) { var cookie_start = document.cookie.indexOf(name); var cookie_end = document.cookie.indexOf(";", cookie_start); if(cookie_start == -1) { ...原创 2013-02-25 14:43:40 · 143 阅读 · 0 评论 -
复选框全选
html: <input type="checkbox" name='selectAll' />全选<input type='checkbox' name='imgindex' value='0' />1<input type='checkbox' name='imgindex' value='1' />2 js:<script ...2013-07-11 17:09:42 · 64 阅读 · 0 评论 -
js笔记
没有类概念,定义对象,对象类型 字符串可以用+或,拼接 firebug css shift+上下键 搜firebug chrome审查元素使用 对象变量可不用var定义在定义对象的函数外对象名.变量名=值 即可完成定义和赋值对象名['变量名']=值在定义对象的函数内可用this,可不加 删除属性delete 对象名.变量名...原创 2013-07-06 18:17:04 · 46 阅读 · 0 评论 -
【转】style.left 与 offsetLeft
首先假设有一个元素是这样的<input id="message" value="123" /> var elem = document.getElementById("message"),此时elem得到的就是这个元素了.通过访问elem.id,我们能获得elem的id,elem.value我们能得到123.注意这里的id以及value都是直接写在标签中的.我的意思就是,这...原创 2013-06-04 17:45:36 · 71 阅读 · 0 评论 -
JQuery animate easing
插件官网:http://gsgd.co.uk/sandbox/jquery/easing/ 一些可参考的网站:http://js8.in/451.htmlhttp://www.poluoluo.com/jzxy/201110/144828.html还有一个时间曲线图的网站http://james.padolsey.com/demos/jquery/easing/...2013-05-27 16:08:34 · 92 阅读 · 0 评论 -
Jquery 帧速
设置方式,帧速设置为100msjQuery.fx.interval = 100; 搜索出默认帧速为13,未验证2013-05-27 16:04:09 · 101 阅读 · 0 评论 -
jquery 清除表单数据 clear from data
http://blog.csdn.net/ajun_studio/article/details/6637229 function clearForm(objE){//objE为form表单 $(objE).find(':input').each( function(){ switch(this.type){ case 'passsword'...原创 2013-09-23 16:33:42 · 151 阅读 · 0 评论