随笔分类 - JavaScript
摘要:<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html;"><title>五子棋</title><link rel="stylesheet" type="text/css" href="http://sandbox.runjs.cn/uploads/rs/102/r2dy3tyw/reset.css"><sc
阅读全文
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title> <style type="text/css"> #navigation {
阅读全文
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title> <script type="text/javascript"> //验证按
阅读全文
摘要://获取单选按钮的选项值 function f1() { //radio集合 var radios = document.getElementsByName("sex"); for (var i = 0; i < radios.length; i++) { if (radios[i].checked) { alert(radios[i].value); break; } } } <input type="checkbox" id="chkAll" onclick="checkAll()"/>全选&
阅读全文
摘要:alert(new Date().toLocaleString()); varnum = new Number(); num =11; alert(num); var a= "a"; alert(a); var b= 'b'; alert(b); var a= "123"; if(isNaN(a)) { alert("是一个数字"); } else { alert("不是一个数字"); } alert("3+3="+eval_r(3+3)); var sum = 0; for (
阅读全文
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title>javascript测试</title> <script type="text/javascript&quo
阅读全文
摘要:<html><head><style>#bg{position:absolute;left:0;top:0;width:100%;height:100%;background:#000;font-size:40px;color:#ccc;text-align:center;}#colorLine{width:400px;}#colorLine div{width:5px;height:2px;float:left;overflow:hidden;}</style></head><body><table id=&quo
阅读全文

浙公网安备 33010602011771号