2016年11月1日

摘要: var str = “hello world” document.write(str.length)输出字符串长度 12 给string 添加样式 <p>Big: " + txt.big() + "</p> <p>Small: " + txt.small() + "</p> <p>Bold: " + 阅读全文
posted @ 2016-11-01 15:56 张昊0802 阅读(109) 评论(0) 推荐(0) 编辑

2016年10月29日

摘要: <script type="text/javascript"> function chanklink(){ document.getElementById("myAnchor").innerHTML="访问w3cschool"; document.getElementById("myAnchor") 阅读全文
posted @ 2016-10-29 13:38 张昊0802 阅读(111) 评论(0) 推荐(0) 编辑

2016年10月28日

摘要: 姓名输入框:<input type="text" value="默认有值"/> 密码输入框:<input type="text" value="默认有值"/> 性别选择框: <input type="radio" name="sex"/><label for="nan">男</label><inpu 阅读全文
posted @ 2016-10-28 13:48 张昊0802 阅读(97) 评论(0) 推荐(0) 编辑
 
摘要: <html><head><meta charset="utf-8" /><title></title><script>window.onload=function(){function $(id){return document.getElementById(id);}$("btn").onclic 阅读全文
posted @ 2016-10-28 13:48 张昊0802 阅读(75) 评论(0) 推荐(0) 编辑