Run JavaScript inside [removed][removed] Tags?

后端 未结 5 1742
我在风中等你
我在风中等你 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条回答
  •  庸人自扰
    2020-12-06 12:48

    You are suppose to do it the second way. in you are referencing an external javascript file, your inline code should go into a second script block.

提交回复
热议问题