你的位置:首页 > 软件开发 > Java > 第七章 动态创建HTML内容

第七章 动态创建HTML内容

发布时间:2016-04-26 12:00:06
javascript也可以改变网页的结构和内容document.write()方法可以方便快捷地把字符串插入到文档里document.write("<strong>hello world.</strong>");/*function i ...

javascript也可以改变网页的结构和内容

  • document.write()方法

可以方便快捷地把字符串插入到文档里

document.write("<strong>hello world.</strong>");/*function insertP(text){  var str = "<p>";  str += text;  str +="</p>";  document.write(str);}insertP("hello world!");*/

原标题:第七章 动态创建HTML内容

关键词:HTML

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。