2018年4月27日

摘要: static Regex RegPhone = new Regex(@"^((1[34578][0-9]{1}))\d{8}"); static Regex RegNumber = new Regex(@"^[0-9]+$"); static Regex RegNumberSign = new Re 阅读全文
posted @ 2018-04-27 18:52 幽默是一种心情 阅读(700) 评论(0) 推荐(0) 编辑
 
摘要: layer.open({ type: 2, anim: 5,//加上anim,渐显 title: '品牌列表', shadeClose: false, maxmin: true, //开启最大化最小化按钮 area: ['800px', '100%'], content: '/Admin/crumb 阅读全文
posted @ 2018-04-27 18:41 幽默是一种心情 阅读(2399) 评论(0) 推荐(0) 编辑
 
摘要: (1)子页面调用父页面的方法或者变量: window.parent.方法()或者变量名 例如:想在子页面中得到 id 为 aaa 的文本框的值 window.parent.$("#aaa").val();//这种写法的前提是引用了jquery window.parent.getElementById 阅读全文
posted @ 2018-04-27 18:11 幽默是一种心情 阅读(3725) 评论(0) 推荐(0) 编辑
 
摘要: layer.open({ type: 1, title: ‘在线调试‘, content: ‘这里是内容‘, maxmin: true, //开启最大,最小,还原按钮,只有type为1和2时,才能设置 full: function() { //点击最大化后的回调函数 console.log(‘这个是 阅读全文
posted @ 2018-04-27 18:03 幽默是一种心情 阅读(973) 评论(0) 推荐(0) 编辑
 
摘要: 有时候更改了JS代码,但是浏览器内容不变,这样<script src="Scripts/myjs/Master.js?v"></script>引入JS就可以避免缓存 阅读全文
posted @ 2018-04-27 17:37 幽默是一种心情 阅读(458) 评论(0) 推荐(0) 编辑
 
摘要: $(function(){ $("#d-intro").find("img").each(function () { $(this).removeAttr("width").removeAttr("height").removeAttr("style"); //if ($(this).next("i 阅读全文
posted @ 2018-04-27 17:33 幽默是一种心情 阅读(1187) 评论(0) 推荐(0) 编辑