03 2013 档案

const VS readonly in detail
摘要:We know both const and readonly can be used to define unchangeablevariables,but what is the difference between'em since they are so similar to each other? There are a few points below: 1.const variables must have a certain value in the compilation time, but for readonly variables, its value can 阅读全文

posted @ 2013-03-21 15:57 wyman25 阅读(220) 评论(0) 推荐(0) 编辑

一个编码引发js错误的问题
摘要:在做一个网站后台的时候,网页引用的一个删除商品的函数在IE6,IE7中死活不能执行。狗血的IE6 IE7不像chrome那样有控制台,因此调试起来非常麻烦,只给了一个大概行数,和对象undefined。 既然在chrome,ie9,ff中能执行,在IE6,IE7中失败,首先想到的就是兼容问题。但函数里面都是用jquery实现的,除了confirm(),应该不存在兼容问题。于是又想到一个事情:网站是基于frameset,难道在frame页中引用js,不能在子frame中调用?于是将原来的onclick="deleteProduct()"改成onclick="wind 阅读全文

posted @ 2013-03-12 01:03 wyman25 阅读(268) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示