问题:将JavaScript函数或代码放在<div></div> 或者<table> </table> <form> </form>内可能会出现此问题。

 1 出现错误的代码
 2 <html>
 3 <body>
 4 </form> 
 5    <script type="text/javascript">
 6    _upc(2);
 7    </script>   
 8 </form>
 9 </body>
10 </html>

解决办法:

 1 解决方法
 2 <html>
 3 <body>
 4 <form>
 5 </form>
 6 
 7 <script type="text/javascript">
 8     _upc(2);
 9 </script> 
10 </body>
11 </html>  


 

 

相关文章:

  • 2021-08-17
  • 2022-01-11
  • 2021-11-10
  • 2022-12-23
  • 2022-12-23
  • 2021-11-09
猜你喜欢
  • 2022-12-23
  • 2021-09-30
  • 2021-06-22
  • 2022-02-08
  • 2022-01-17
  • 2021-08-30
  • 2021-07-09
相关资源
相似解决方案