2016年4月4日

摘要: <!DOCTYPE html><html> <head> <title> new document </title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <script type="text/jav 阅读全文
posted @ 2016-04-04 20:56 David1314 阅读(1160) 评论(0) 推荐(0) 编辑
摘要: <!doctype html><html><head><meta charset="utf-8"><style>body{ margin:0; padding:0; font-size:30px; font-weight:bold}div{ text-align:center; line-heigh 阅读全文
posted @ 2016-04-04 17:32 David1314 阅读(109) 评论(0) 推荐(0) 编辑

2016年4月1日

摘要: 若要实现有多个分隔符分隔的字符串,具体代码如下: <html> <head> <script language="javascript" type="text/javascript"> function window_load(){ var str = "name,age,sex;address"; 阅读全文
posted @ 2016-04-01 12:32 David1314 阅读(1651) 评论(0) 推荐(0) 编辑
摘要: JS中split用法 <script language="javascript"> function spli(){ datastr="2,2,3,5,6,6"; var str= new Array(); str=datastr.split(","); for (i=0;i<str.length  阅读全文
posted @ 2016-04-01 12:24 David1314 阅读(652) 评论(0) 推荐(0) 编辑

2016年3月31日

摘要: <!DOCTYPE html><html><head> <meta charset="utf-8"/></head><body> </body></html> 阅读全文
posted @ 2016-03-31 22:37 David1314 阅读(149) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html><head> <meta charset="utf-8"/> <script src="jquery-1.11.3.js"></script></head><body> <input type="button" id="btn" value="load"> 阅读全文
posted @ 2016-03-31 22:24 David1314 阅读(83) 评论(0) 推荐(0) 编辑

导航