Wrapping javascript in <!— -->

前端 未结 6 894
慢半拍i
慢半拍i 2021-02-13 02:15

What\'s the point of wrapping javascript code in ?

6条回答
  •  既然无缘
    2021-02-13 03:12

    By wrapping Javascript code in an HTML comment, you prevent older browsers that do not support Javascript from trying to treat the code as HTML.

提交回复
热议问题