<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<link id='link1' rel="stylesheet" type="text/css" />
<script>
function hf1(ojb){
ojb=document.getElementById('r');
ojb.style.background='hotpink';
}
function hf2(ojb){
ojb=document.getElementById('r');
ojb.style.background='navajowhite';
}
</script>
</head>
<body>
<form id="a">
<table id='r'>
<td><strong>可以换皮肤哦</strong></td>
<td><input id="bot1" type="button" value="皮肤1" οnclick="hf1(this)"/> </td>
<td> <input id="bot2" type="button" value="皮肤2" οnclick="hf2(this)"/></td>
<tr>
<td>输入姓名</td>
<td> <input type="text" name="xm" value="name"/><br /></td>
</tr>
<tr>
<td>输入密码</td>
<td><input type="password" name='mm' value="mm" /><br /></td>
</tr>
<tr>
<td>请您留言</td>
<td><textarea></textarea> </td>
</tr>
<tr>
<td><input type="submit" value="提交" /></td>
</tr>
</table>
</form>
</body>
</html>
加法拼串 例如:var a='10'+2 输出等于102
var yu=70;
document.write(yu);
yu=parseInt(yu,16);//控制进制转换为哪个进制 把yu转换为16进制的
console.log(yu);
zx="255.98";
console.log(parseInt(zx));
zx=true;//true -->"true" -->NaN
console.log(parseInt(zx));
zx=null;//NaN
console.log(parseInt(zx));
var hhy;//NaN
console.log(parseInt(hhy));//NaN