|
本帖最后由 ironsang 于 2017-3-30 09:45 编辑
为了引入天地图,我先把地图嵌入到html中,然后在w文件中通过iframe引入html文件,调试正常,打包成app后报错(服务器地址为:http://localhost), 请问正确的引入方式是什么。如下:
另外在直接在w文件中的window下引入地图的js会报错:
- com.justep.ui.exception.ValidationException: line 5, column 103 of <a href="file:///C:/devtool/WeX5_V3.6/model/UI2/h5/views/map/map.w">file:///C:/devtool/WeX5_V3.6/model/UI2/h5/views/map/map.w</a>: Fatal error: The reference to entity "mapa" must end with the ';' delimiter.
- <a href="file:///C:/devtool/WeX5_V3.6/model/UI2/h5/views/map/map.w">file:///C:/devtool/WeX5_V3.6/model/UI2/h5/views/map/map.w</a>, line 5, column 103: Fatal error: The reference to entity "mapa" must end with the ';' delimiter.
复制代码
引入方式: |
-
app中html文件无法访问
-
在w文件中引入js报错
|