script中type属性讲解

  js的代码是由type决定的;

  <script type='javascript'> 默认的 

  <script type="text/html" >   就是html文件

  <script type="text/template">  模板文件    模板文件是写在HTML中的   模板中尽量套一层顶级div,只能有一个;

  for循环 输入到页面或想得到for循环 里面的所有数据用+=      如果只用=for循环只能得到最后的结果;

原文地址:https://www.cnblogs.com/shangjun6/p/10402884.html