Run JavaScript inside [removed][removed] Tags?

后端 未结 5 1754
我在风中等你
我在风中等你 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 13:00

    When you include , you are mentioning that you want to use the Javascript which is included inside the Tabs.js file so that the compiler knows where to look for InitializeTabs function, when it is trying to execute the function.

    Now if you want to include some Javascript inline, that is inside the HTML, hen you use the

    You need to do it like this

    
    
    

提交回复
热议问题