摘要:
1.js的作用域是有函数划分的,而不是块儿 var too="test"; if(true){//这是在块中的定义,此时还是全局变量 var too="new test"; } alert(too=="new test");//return true; function test() ... 阅读全文
posted @ 2009-01-08 16:27
mshybinbin
阅读(273)
评论(0)
推荐(0)
摘要:
1.typeof var num="123"; if(typeof num=="string") num=parseInt(num); 2.constructor if(num.constructor==String) num=parseInt(num); var Myarray=new Array("1","2"); var str=""; if(Myarray.const... 阅读全文
posted @ 2009-01-08 12:00
mshybinbin
阅读(163)
评论(0)
推荐(0)
摘要:
引用是指向对象实际位置的指针(实际的对象肯定不会是引用) 1 .var items=new Array("1","2","3");//原对象自修改,引用同事修改 var itemsRef=items; items.push("4"); alert(itemsRef.length=itmes.length); 返回true 2 .var ite... 阅读全文
posted @ 2009-01-08 11:39
mshybinbin
阅读(132)
评论(0)
推荐(0)
摘要:
如题(目前只能ie使用) 效果地址: http://www.ishangdu.com/city/Community/table/test/Default4.aspx http://www.hxncyl.cn/table/test/Default4.aspx 设计思路: 1.首先设计弹出层,当鼠标滑过课程列表时,弹出对应内容的弹出层 2.弹出层可拖拽,拖拽弹出层到指定的课程... 阅读全文
posted @ 2009-01-08 10:08
mshybinbin
阅读(551)
评论(0)
推荐(0)

浙公网安备 33010602011771号