摘要: 今天在项目中遇到了需要在前台校验的问题 <div class="panes"> <div class="pane" style="display: block;"> <table class="tab_bdcx" width="100%" border="0"> <tbody> <tr> <td c 阅读全文
posted @ 2016-12-09 09:53 马小乐 阅读(414) 评论(0) 推荐(0) 编辑
摘要: <!doctype html> <html> <head> <meta charset = "UTF-8"> <title>判断单选或者复选框中的值</title> </head> <body> <div id="useList"> <input type="radio" value ="0" na 阅读全文
posted @ 2016-11-23 16:31 马小乐 阅读(336) 评论(0) 推荐(0) 编辑
摘要: //首先建立一个父页面 <!doctype html> <html> <head> <title>父页面</title> <script> function tanchu(){ window.open("son.html","ziyemian","width=300,height=400,top=2 阅读全文
posted @ 2016-11-14 23:23 马小乐 阅读(5349) 评论(0) 推荐(0) 编辑
摘要: //首先定义一个函数 Array.prototype. unique=function(){ var ret = []; var json ={}; for(var i = 0;i<this.length;i++){ if(!json[this[i]]){ ret.push(this[i]); js 阅读全文
posted @ 2016-11-14 20:56 马小乐 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 最近遇到一个问题,需要在不同的浏览器上设置不同的背景颜色. 本来打算用css @-moz-document url-prefix(){.aa{background:pink}}; @media screen and (-webkit-min-device-pixel-ratio:0) { .aa{b 阅读全文
posted @ 2016-09-30 11:56 马小乐 阅读(254) 评论(0) 推荐(0) 编辑
摘要: <div id="container"> <h2>hahah</h2> <h3>quuquq</h3> <div class="inner">hello</div> <div class="inner">world</div> </div> </body> <script type="text/ja 阅读全文
posted @ 2016-09-13 20:39 马小乐 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 今天在网上发现了一个帖子是关于get和post的区别的,就总结一下,有不对的地方还望指正; ①这是在菜鸟教程上讲到的: 与 POST 相比,GET 更简单也更快,并且在大部分情况下都能用。 然而,在以下情况中,请使用 POST 请求: 无法使用缓存文件(更新服务器上的文件或数据库) 向服务器发送大量 阅读全文
posted @ 2016-09-05 13:08 马小乐 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 今天遇到一个问题,需要判断浏览器是否为ie浏览器,在晚上找了半天,有通过document.all来判断的,但是在IE11中已经不能正确判断了,还有一些通过iE的bug等进行判断的,不知道是我测试的姿势不对,还是其他原因都没有成功!最后是通过下面这段代码进行测试的,效果还不错, <pre> </pre 阅读全文
posted @ 2016-08-17 15:12 马小乐 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 这个问题在网上找了好久,只需要在alert事件后面添加上window.getSelection().removeAllRanges(); 就可以解决选中 页面文字的问题了. 阅读全文
posted @ 2016-08-16 15:43 马小乐 阅读(347) 评论(0) 推荐(0) 编辑