ie6、ie7下JSON.parse JSON未定义的解决方法
摘要:解决方法一: var jsons = req.responseText; var s; if (typeof(JSON) == 'undefined'){ s = eval("("+jsons+")"); }else{ s = JSON.parse(jsons); } 解决方法二:调用的页面里引用json2.js即可解决问题(推荐方法二)。即:json2.js的下载地址:http://download.csdn.net/detail/icexuan007/4896080转自:http://blog.csdn.net/icexuan007/
阅读全文
posted @
2013-11-25 14:02
mrma1989
阅读(1047)
推荐(0) 编辑
jQuery 如何存储,获取和删除 Cookies
摘要:jQuery.cookie = function(name, value, options) { if (typeof value != 'undefined') { options = options || {}; if (value === null) { value = ''; options = $.extend({}, options); options.expires = -1; } var expires = ''; if (options.expires && (typeof options.expires ==
阅读全文
posted @
2013-11-25 12:57
mrma1989
阅读(285)
推荐(0) 编辑
mysql调用存储过程出现Illegal mix of collations错误
摘要:Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation '='
阅读全文
posted @
2013-11-25 10:20
mrma1989
阅读(5704)
推荐(1) 编辑