简体   繁体   中英

visual studio 2015 cordova app and script inline for android

I've got a problem with the inline scripts on android emulator, they don't want to work. I've already solved with the addeventlistener but now I need to add some old code and I don't want to rewrite every inline event. Is it possible to adapt inline events for android too?

我已经解决了这个metatag:

<meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval' 'unsafe-inline' ; style-src 'self' 'unsafe-inline'; media-src *">

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