最新版hbuilderX 2.3.2.20190921创建plus.webview.open打开的网页样式丢失
wv = plus.webview.create('', 'custom-webview', {
plusrequire: 'none',
top: uni.getSystemInfoSync().statusBarHeight,
bottom:0,
});
wv.loadURL('https://www.baidu.com/sf?resource_id=4256&openapi=1&query=65c68cdb04759223f32d8381&dspName=iphone&nqt=ninf&nwd=65c68cdb04759223f32d8381&pd=poi&from_sf=1&title=%E6%98%8E%E4%B9%8B%E7%AE%97%E6%95%99%E8%82%B2&loc=13351427.96%2C3285966.71&c=292&hit_sid=yes&flag_road=0&poi_type=education&ar=(13346427.96%2C3280966.71%3B13356427.96%2C3290966.71)&ext=%7B%22loc%22%3A%2213351427.96%2C3285966.71%22%2C%22c%22%3A292%2C%22user_loc%22%3A%22%22%2C%22sc%22%3A334%2C%20%22poi_type%22%3A%22education%22%7D&to_sf_tag=%E5%9F%B9%E8%AE%AD%E6%9C%BA%E6%9E%84&sc=334&user_loc=&lid=11253912655975284017&lid=11253912655975284017&group=commonkg_home&word=%E6%B5%99%E6%B1%9F%E7%9C%81%E4%B8%BD%E6%B0%B4%E5%B8%82%E8%8E%B2%E9%83%BD%E5%8C%BA%E4%B8%AD%E4%B8%9C%E8%B7%AF557%E5%8F%B7202%E6%98%8E%E4%B9%8B%E7%AE%97&referlid=11429816258585380948&ms=1&frsrcid=4255&frorder=1');
var currentWebview = this.$mp.page.$getAppWebview();
currentWebview.append(wv);
上风下云 (作者)
可以了!谢谢
2019-09-24 11:10