简体   繁体   中英

is it possible to run a simple html that calls a js file on android?

I created a simple local page that has a square in it and it calls a JavaScript file that has functions which animate that square. It works fine on my computer's web browser, but on my Android browser the square is static and JavaScript file is not loaded. How can I make the animation work on android?

My HTML:

在此处输入图片说明

Using a web view you can load an HTML file, and any referenced JavaScript will run.

Checkout the developer docs on WebView! Totally rocks!

https://developer.android.com/reference/android/webkit/WebView.html

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