上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页
摘要: //改变时的事件$("#testSelect").change(function(){ //事件发生生 jQuery('option:selected', this).each(function(){ //遍历选中值 alert(this.value); }); }); //选到的项目方法1:$("select#Clubs").children("[@selected]").each(function(){ alert(this.text); }); 方法2:$("#selBags").val(); 阅读全文
posted @ 2013-12-04 14:17 mrma1989 阅读(315) 评论(0) 推荐(0) 编辑
摘要: // 手机号码验证jQuery.validator.addMethod("mobile", function(value, element) { var length = value.length; var mobile = /^(((13[0-9]{1})|(15[0-9]{1}))+\d{8})$/ return this.optional(element) || (length == 11 && mobile.test(value));}, "手机号码格式错误"); // 电话号码验证 jQuery.validator.addMet 阅读全文
posted @ 2013-12-04 14:12 mrma1989 阅读(420) 评论(0) 推荐(0) 编辑
摘要: 解决方法一: 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 阅读(1036) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(282) 评论(0) 推荐(0) 编辑
摘要: Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation '=' 阅读全文
posted @ 2013-11-25 10:20 mrma1989 阅读(5594) 评论(0) 推荐(1) 编辑
摘要: 在使用AJAXform提交表单时,返回的数据格式为JSON,头文件是application/json 时,在 火狐、ie9和谷歌下都能正常解析,在ie7下会提示下载。解决方法:指定返回页的头文件为"text/html"mvc中return Json(new { result = "0", type = "添加" }, "text/html"); 阅读全文
posted @ 2013-10-28 10:35 mrma1989 阅读(622) 评论(0) 推荐(0) 编辑
摘要: 所谓第三方 cookie,就是说你访问网页 A,却接收到域名 B 的 cookie 设定指令。这可能是由于网页 A 请求或链接了 B 的网页,比如上面提到的 iframe 以及 jsonp。我查到了各个浏览器对于跨域的处理规则,可以看到第三方 cookie ,IE 在默认设置中是做了限制的。不同浏览器的第三方 cookie 规则IEFireFoxChromeSafariOpera限制第三方coookie是否否是否要解决这个问题,有 2 种方法,一个就是上面说到的调整 IE 设置,将第三方域名加入到可信网站列表中;另一个方法,就是 P3P 了。P3P?P3P 全称Platform for Pri 阅读全文
posted @ 2013-10-17 10:12 mrma1989 阅读(608) 评论(0) 推荐(0) 编辑
摘要: 1.静态的html页面想要设置使用缓存:,目前我只明确该方法可行。如果设置了并不起缓存作用。 2.动态页面使用缓存:在页面上使用和并不使动态页面使用缓存,要在后台代码段Response.AddHeader("cache-control","max-age=时间(单位:秒)")或Response.Expires=时间(单位:分)来启用缓存。如果用Response.AddHeader("expires","utc时刻")来设置Expires的话,cache-control的优先级比expires高,就是说如果设置了ca 阅读全文
posted @ 2013-10-14 15:37 mrma1989 阅读(449) 评论(0) 推荐(0) 编辑
摘要: 方法一:在web.config的configuration接点中添加,最好是添加在configuration节点的最后 方法二:通过 “管理NUGET CHEN程序管理包”在已安装的包中卸载卸载完毕重新安装即可 阅读全文
posted @ 2013-10-12 10:57 mrma1989 阅读(2242) 评论(0) 推荐(0) 编辑
摘要: 解决方法: 1:设置 C:\windows\temp 文件夹安全权限 添加用户 NETWORK SERVICE 写入和读取权限 2:设置 C:\windows\temp 文件夹安全权限 添加用户 IIS_IUSRS 写入和读取权限(我的就是个问题) 3:设置网站bin 文件夹权限 添加用户 NETWORK SERVICE 写入和读取权限转自:http://www.cnblogs.com/szfhquan/archive/2013/04/01/2994274.html 阅读全文
posted @ 2013-10-11 14:45 mrma1989 阅读(358) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页