摘要:
错误处理与调试: 1、try-catch try{ window.someNoneXistentFunction(); }catch(error){ alert(error.message) } 2、finally子句一经使用,就会执行 try{ return 2; }catch(error){ r 阅读全文
posted @ 2016-01-17 23:42
^^-^^-
阅读(691)
评论(0)
推荐(0)
摘要:
DOM2: 1、DOM2中:创建一个完整的HTML文档 document.implementation.createHTMLDocument("new Doc"); alert(htmldoc.title);------"New Doc" alert(typeof htmldoc.body);--- 阅读全文
posted @ 2016-01-17 20:16
^^-^^-
阅读(457)
评论(0)
推荐(0)

浙公网安备 33010602011771号