摘要: 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title></title> 6 <style> 7 #div1{width: 200px; height: 150px;background: red;position: 阅读全文
posted @ 2020-05-04 15:34 孝文 阅读(135) 评论(0) 推荐(0)
摘要: 类似CSS中class,一次给一组对象添加一个方法。 Array.prototype.sum=function() { var result=0; for(var i=0;i<this.length;i++) { result+=this[i]; } return result; } 阅读全文
posted @ 2020-05-04 09:29 孝文 阅读(110) 评论(0) 推荐(0)
摘要: 1 fucntion ajax(url,fnSuccess,fnFaild) 2 { 3 //1,创建Ajax对象 4 if(window.XMLHttpRequest){ 5 var oAjax=new XMLHttpRequest(); 6 } 7 else 8 { 9 var oAjax=ne 阅读全文
posted @ 2020-04-30 12:42 孝文 阅读(124) 评论(0) 推荐(0)
摘要: 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title></title> 6 <style> 7 #parent{width: 600px;height:20px;background-color:#CCC;posi 阅读全文
posted @ 2020-04-29 16:22 孝文 阅读(214) 评论(0) 推荐(0)
摘要: 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title></title> 6 <style> 7 #parent{width: 600px;height:20px;background-color:#CCC;posi 阅读全文
posted @ 2020-04-29 15:58 孝文 阅读(100) 评论(0) 推荐(0)
摘要: 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title></title> 6 <style> 7 #div1{width: 100px;height:100px;background-color:red;positi 阅读全文
posted @ 2020-04-29 15:31 孝文 阅读(111) 评论(0) 推荐(0)
摘要: 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title></title> 6 <style> 7 #div1{width: 200px;height:200px;background-color:red;positi 阅读全文
posted @ 2020-04-29 12:14 孝文 阅读(105) 评论(0) 推荐(0)
摘要: 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title></title> 6 <style> 7 #div1{width: 100px;height:100px;background-color:red;positi 阅读全文
posted @ 2020-04-29 12:12 孝文 阅读(115) 评论(0) 推荐(0)
摘要: 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title></title> 6 <style> 7 #div1{width: 100px;height:100px;background-color:red;positi 阅读全文
posted @ 2020-04-29 12:11 孝文 阅读(122) 评论(0) 推荐(0)
摘要: 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title></title> 6 <style> 7 #div1{width: 200px;height:200px;background-color:red;positi 阅读全文
posted @ 2020-04-29 11:17 孝文 阅读(172) 评论(0) 推荐(0)