bar*_*_88 16 javascript ios cordova
我有一个iOS Phonegap/Cordova 3.1 hello world应用程序的全新版本,我在xcode输出中收到以下消息:
2013-10-30 08:20:17.768 HelloWorld[51492:c07] Multi-tasking -> Device: YES, App: YES
**2013-10-30 08:20:17.914 HelloWorld[51492:c07] Resetting plugins due to page load.**
2013-10-30 08:20:18.394 HelloWorld[51492:c07] Finished load of:
Run Code Online (Sandbox Code Playgroud)
是什么导致了这个Resetting plugins due to page load消息?我构建它时应用程序似乎运行正常.
Mat*_*Ray 10
它似乎是与jQuery Mobile和类似库的已知冲突.检查另一篇文章,找到一个非常简单的补救措施.
编辑:
谢谢,我的立场得到了纠正,@ bart_88.我查看了Cordova项目代码,看到以下内容:
- (void)webViewDidStartLoad:(UIWebView*)theWebView {
NSLog(@"Resetting plugins due to page load.");
[_commandQueue resetRequestId];
[[NSNotificationCenter defaultCenter] postNotification:[NSNotification notificationWithName:CDVPluginResetNotification object:self.webView]];
}
Run Code Online (Sandbox Code Playgroud)
看来这个代码无论如何都会被命中(CDVViewController),所以你看到的消息只是一个可以忽略的新NSLog条目.
| 归档时间: |
|
| 查看次数: |
13993 次 |
| 最近记录: |