摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title></head><body><input type="button" id="btn" value="button"><form actio 阅读全文
posted @ 2016-10-06 15:48 liwei742314100 阅读(167) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <style> *{ text-align: center; } </style></head><body><script src=". 阅读全文
posted @ 2016-10-06 15:47 liwei742314100 阅读(122) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <script src="../jquery-1.12.4.min.js"></script> <script src="jQuery. 阅读全文
posted @ 2016-10-06 15:45 liwei742314100 阅读(99) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <style> .li{ border:2px solid red; background-color: #00AA88; list-s 阅读全文
posted @ 2016-10-06 15:45 liwei742314100 阅读(132) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <style> li{ list-style: none; height:40px; width:100px; float:left; 阅读全文
posted @ 2016-10-06 15:42 liwei742314100 阅读(168) 评论(0) 推荐(0) 编辑
摘要: <body><div style="height:500px;width:300px;border:1px solid red;float:left"> <img src="1.jpg" style="height:100px;width:100px;"></div> <canvas id="can 阅读全文
posted @ 2016-10-06 15:40 liwei742314100 阅读(98) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title></head><body><script> sessionStorage.setItem('上单','盖轮'); sessionStora 阅读全文
posted @ 2016-10-06 15:30 liwei742314100 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 1.this是javascript中的一个关键字,它代表函数运行时,自动生成的一个内部对象,只能在函数内部使用。 2.随着函数使用场合的不同,this的值会发生变化,但是有一个原则,就是this指的是调用函数的那个对象。 3.this分类 1)纯粹的函数调用 这时的this指向window。(函数没 阅读全文
posted @ 2016-10-06 15:17 liwei742314100 阅读(599) 评论(0) 推荐(0) 编辑
摘要: function clearAtrEq(str){ var hash=[]; for(var i=0;i<str.length;i++){ if(hash[str[i]]==undefined){ hash[str[i]]=1; }else{ hash[str[i]]++; } } var str1 阅读全文
posted @ 2016-10-06 11:33 liwei742314100 阅读(2484) 评论(0) 推荐(0) 编辑
摘要: js数组去重方法 阅读全文
posted @ 2016-10-06 11:18 liwei742314100 阅读(160) 评论(0) 推荐(0) 编辑