Run JavaScript inside [removed][removed] Tags?

后端 未结 5 1730
我在风中等你
我在风中等你 2020-12-06 12:33

I\'ve a JavaScript file that processes tab switches. Here is the source:

var tCount = 0;

function SwitchToTab(id) {
    if (id < 0 || id > tCount) { i         


        
5条回答
  •  -上瘾入骨i
    2020-12-06 12:53

    You can either use src, or put JavaScript inside the tag.

    But not both at once. There's no downside to using two tags anyway (apart from larger file size).

提交回复
热议问题