Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Android を使用して、私は WebView を持っています。Assetsフォルダー内のcss、javascript、および画像への参照を含むhtmlをローカルに作成します。このローカル html が表示されます。
WebView でアセットの JavaScript と画像を参照するにはどうすればよいですか?
HTML ビューに、ベース フォルダーが Assets フォルダーであることを伝える必要があると思いますか? もしそうなら、どのように?
index.htmlこの場所を使用してファイルにアクセスする必要があります。
index.html
file:///android_asset/index.html