阅读背景:

Javascript对象函数调用对象内的另一个函数,Rails

来源:互联网 

Original Question

Can't figure out why I can't call the second function from within that first function. I am using jQuery-turbolinks. (Also, if you happen to know of a better way to only run page-specific javascript in rails, let me know. Currently this is my best implementation where I check if the body has a certain class, and if it does then I run the init function within this javascript object).Can't figure out why I can'




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: