03 2012 档案

IE6/7 字符串 数组方式获取字符 不支持
摘要:var string="asdf"alert(string[0]); IE 6 7 下为undefined 阅读全文

posted @ 2012-03-15 11:52 kxdhm 阅读(171) 评论(0) 推荐(0)

IE html5 header footer nav article section
摘要:<!--[if ie]><script>document.createelement("header");document.createelement("footer");document.createelement("nav");document.createelement("article");document.createelement("section");</script><![endif]--> <!--[if ie]>&l 阅读全文

posted @ 2012-03-14 16:38 kxdhm 阅读(263) 评论(0) 推荐(0)

javascript tea加密
摘要:转自http://www.movable-type.co.uk/scripts/tea-block.html/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *//* Block TEA (xxtea) Tiny Encryption Algorithm implementation in JavaScript *//* (c) Chris Veness 2002-2010: www.movable... 阅读全文

posted @ 2012-03-12 17:02 kxdhm 阅读(1255) 评论(0) 推荐(0)

一个不容易觉察到的js错误,function () {}(function () {}) is not a functio
摘要:var asdf = function(){} (function(){ })()解决方案:var asdf = function(){}; (function(){ })() 阅读全文

posted @ 2012-03-06 19:30 kxdhm 阅读(197) 评论(0) 推荐(0)