Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

本地测试js多文件的时候使用这个方法没有效果? #852

Open
yukifeng opened this issue Jul 9, 2019 · 1 comment
Open

Comments

@yukifeng
Copy link

yukifeng commented Jul 9, 2019

[JPEngine startEngine]; NSString *sourcePath = [[[NSBundle mainBundle] bundlePath]stringByAppendingPathComponent:@"js/main.js"]; [JPEngine et:sourcePath]; [JSPatch testScriptInBundle];
第二个文件是个新的controller,从main。js中跳转会报找不到该类,也没有第二个文件中的console。log,请问如何导入其他js文件?

@yukifeng
Copy link
Author

yukifeng commented Jul 9, 2019

对了 已经include第二个js文件了 但是在跳转控制器的时候会报错

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant