js的代码是由type决定的;

  <script type='javascript'> 默认的 

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

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

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

相关文章:

  • 2021-12-28
  • 2022-12-23
  • 2022-01-10
  • 2021-10-27
  • 2021-07-30
  • 2022-12-23
  • 2021-09-13
猜你喜欢
  • 2021-06-20
  • 2021-09-13
  • 2022-01-07
  • 2022-12-23
  • 2021-04-24
  • 2021-04-16
相关资源
相似解决方案