摘要:
<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> #start,#stop,#jiansu,#jiasu { width: 100px; height: 100px; 阅读全文
摘要:
<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> div { margin: 0; padding: 0; } .container { width: 600px; 阅读全文
摘要:
<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> div { margin: 0; padding: 0; } .container { width: 600px; 阅读全文
摘要:
css代码: ul { list-style: none; width: 400px; height: 400px; margin: 0; padding: 0; background-image: url(https://timgsa.baidu.com/timg?image&quality=80 阅读全文
摘要:
var div = document.getElementById('div1'); div.style.width = '100px'; div.style.height = '100px'; div.style.backgroundColor = 'red'; div.style.positio 阅读全文
摘要:
var obj = { "2": "a", "3": "b", "length": 2, "push": Array.prototype.push } //属性要为索引(数字)属性,必须有length属性,最好加上push //push 相当于这样 // Array.prototype.push = 阅读全文
摘要:
Array.prototype.unique = function() { var temp = {}, result = [], len = this.length; for (var i = 0; i < len; i ++) { if(!temp[this[i]]) { temp[this[i 阅读全文
摘要:
function typeOf(value) { var ret = typeof(value); var template = { "[object Array]": "array", "[object Object]": "object", "[object Number]": "number 阅读全文