随笔分类 -  javascript

摘要:1. 除IE外都可识别 2. 所有的IE可识别 3. 只有IE5.0可以识别 4. 仅IE5.0与IE5.5可以识别 5. IE5.0以及IE5.0以上版本都可以识别 6. 仅IE6可识别 7. IE6以及IE6以下版本可识别 8. IE6以及IE6以上版本可识别 9. 仅IE7可识别 10. IE7以及IE7以下版本可识别 11. IE7以及IE7以上版本可识别 阅读全文
posted @ 2014-03-01 11:34 ki_tom 阅读(402) 评论(0) 推荐(0)
摘要://接口1varIClassName={IgetName:function(){getName.apply(this);},IsetName:function(){setName.apply(this,arguments);}}//接口2varIAlertName={IAlert:function(){printName.apply(this);}}//父类varsuperClass=function(){name="superClass";}//子类varsubClass=function(){//实现接口1方法getName=function(){returnname; 阅读全文
posted @ 2013-01-23 16:15 ki_tom 阅读(154) 评论(0) 推荐(0)
摘要:<script type="text/javascript">//测试添加属性和方法function myClass(id){ this.id = id; this.innerMethod= function (){ alert('inner method'); }}// myClass 相当于对象,同时可以看成是包myClass.name = ' 添加实例的属性或添加包内对象';//myClass相当于对象,同时可以看成是包myClass.outerMethod = function (){alert('添加实例的方法或 阅读全文
posted @ 2013-01-23 16:13 ki_tom 阅读(151) 评论(0) 推荐(0)