给脚本标签一个 ID [英] Giving the script tag an ID

查看:26
本文介绍了给脚本标签一个 ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了一个场景,给 script 元素一个 id 属性可以轻松解决问题.但是,在阅读 w3schools<上的 script 元素后/a> 和 quirksmode,似乎这样做可能会有一些不可预见的后果.

I came across a scenario where giving a script element an id attribute would solve a problem easily. However, after reading about the script element at w3schools and quirksmode, it seems doing so could have some unforeseen consequences.

有没有人在使用 Chrome、Safari、FF3 up 和 IE 7 up 等浏览器时遇到过这些问题?

Has anyone come across any of these issues with browsers such as Chrome, Safari, FF3 up and IE 7 up?

推荐答案

在当前所有浏览器中都很好.

It's fine in all current browsers.

唯一出现

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆