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

Master #16

Closed
wants to merge 3 commits into from
Closed

Master #16

wants to merge 3 commits into from

Conversation

albert438
Copy link
Contributor

昨天跟你讨论一下载入多JS文件的问题,现在我加了一个include保留字(require关键被用了),这样的话就能像wax那样用include的方式载入多个JS文件,不同的JS文件对应不同的OBJC文件,我想这样写的话代码会清晰些。

Now you can use include(“someJSFile”)  to include the JS file
Now you can use include(“someJSFile”) in js code to include other files
@albert438
Copy link
Contributor Author

NSLog我没加,删掉了。

@bang590
Copy link
Owner

bang590 commented May 29, 2015

因为JSPatch主要应用场景是网络下发JS文件,JS文件很少是直接放在项目Bundle里,只是在demo里为了方便才这样做,所以觉得include直接去Bundle里找文件不太合适。后面我可能会提供一个接口给外部,让外部使用者决定include文件的获取方式。

@bang590 bang590 closed this Jun 3, 2015
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

Successfully merging this pull request may close these issues.

None yet

2 participants