摘要: 产生时间: <!DOCTYPE html> <html> <head> <title>创建日期对象</title> <script> var myDate1=new Date(); var myDate2=new Date("June 10,2010"); var myDate3=new Date( 阅读全文
posted @ 2015-07-20 21:31 wojiaohuangyu 阅读(10) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <title>随机产生整数,并计算其平方、平方根和自然对数</title> <script> var data; function getRandom(){ data=Math.floor(Math.random()*101); alert 阅读全文
posted @ 2015-07-20 20:37 wojiaohuangyu 阅读(6) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <title>判断字符串是否合法</title> <script> function isRight(subChar){ var findChar="adcdefgjshfsjhfsdkfhifjkfd243674653475_-"; fo 阅读全文
posted @ 2015-07-20 20:20 wojiaohuangyu 阅读(12) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <title>购物简易计算器</title> <style> section{ background-color:#C9E495; width:260px; height:320px; text-align:center; padding- 阅读全文
posted @ 2015-07-20 20:18 wojiaohuangyu 阅读(7) 评论(0) 推荐(0)