开发者

Jquery/JS - Function not defined

can anybody tell me why i get the error "translater is not defined" ?

working example http://jsfiddle.net/PkqKg/7/

I am confused.Thanks in advance!

开发者_开发知识库 Peter


jsfiddle runs the contents of the Javascript box inside a closure, so your variables cannot be accessod globally. You can do this if you want

window.translater = function() {.. }


Or simply change it to no wrap(head or body) http://jsfiddle.net/PkqKg/9/


or you can use as well like this :

http://jsfiddle.net/corotchi/PkqKg/10/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜