简体   繁体   中英

JavaScript alert box not displaying on Android

I can't seem to get a JS alert box to show up when using either browser (tested with Chrome and Android Browser) on Android (v 4.4). Might there be a system setting that prevents me from doing this? The reason I want to enable it is to do some quick debugging (not sure how to use console in a mobile web view). Ideas?

I once checked alert they work fine in Android . But anyways if you want to use console.log in android web for debugging then use 1 of the following method

Method 1

Use this tool it provides you console.log remotely ( Stack Overflow Answer )

Method 2

Another tool that is much simple is available at GitHub for mobile console

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM