开发者

How to define my own js function in jsfiddle?

开发者 https://www.devze.com 2023-03-31 04:14 出处:网络
I want to test how my own function update works on jsfiddle but 开发者_高级运维when I click the button I get an error that update is not defined.

I want to test how my own function update works on jsfiddle but 开发者_高级运维when I click the button I get an error that update is not defined.

How can I use my own functions on jsfiddle?


Two problems:

The first problem is that you have some extra text at the end of the script:

})();

The second problem is that you are wrapping the function definitions inside the onDomReadyfunction.

Change this option to no wrap(head) and it will work.

0

精彩评论

暂无评论...
验证码 换一张
取 消