小程序的web-view怎么打开项目目录内的html页面呐?

小程序 文章 2022-03-04 16:00 1594 0 全屏看文

AI助手支持GPT4.0

小程序的web-view怎么打开项目目录内的html页面呐?How does the web-view of the applet open the html page in the project directory?

小程序的web-view怎么打开项目目录内的html页面呐?

公司需要的一个要求是,在小程序页面打开是html页面,这里我考虑应该用到的web-view,但是官方文档只写了跳转网址http的形式,请教一下大佬,请问怎么可以做多小程序访问项目内的本地html页面? 感激不尽

One of the requirements of the company is that the HTML page is opened on the applet page. Here I consider the web view that should be used, but the official document only writes the form of jumping to the website http. Please ask the boss, how can I do more applets to access the local HTML page in the project? be deeply grateful

回答:

微喵网络:

只能打开网络地址

小晴儿.:谢谢回答,大哭 o(╥﹏╥)o
刘绵绵是仙女:

方案一:将html文件转为微信小程序用的wxml文件

方案二:把html放在域名的文件路径下【服务器】

brave:

不支持。

-EOF-

AI助手支持GPT4.0