0

我正在编写一个带有 WebView 标志页的 react-native 应用程序。当我使用 safari web 检查器(开发->模拟器->本地主机-登录)检查页面时,我只有三个选项卡,资源、调试器、控制台。在 Resources 选项卡下,我可以看到页面和相关资产,例如 application.js。但是,我看不到 cookie。当我在本机页面上查看 JSContext 时,也会发生类似的事情。

如何查看和修改 cookie?我的 WevView 代码是

<View style={[styles.container]}>
   <WebView
     ref={'webview'}
     automaticallyAdjustContentInsets={false}
     style={styles.webView}
     source={{uri: LOGIN_URL}}
     javaScriptEnabled={true}
     onNavigationStateChange={this.onNavigationStateChange.bind(this)}
     startInLoadingState={true}
     scalesPageToFit={true}
   />
</View>
4

1 回答 1

0

The React Developer Tools only support Chrome and Firefox, so it appears best to use the web inspectors on these two browsers.

于 2016-03-13T03:15:38.563 回答