Skip to content

vue-cli的项目hbuilder打包后 还是调不到h5 plus的方法啊 这个怎么解决 #11

@zhengfei16

Description

@zhengfei16

mounted(){
this.plusReady(function() {
// 获取定位信息
var self = this;
this.$geolocation.getCurrentPosition().then(function (position) {
self.city = position.address.city;
});
// 获取网络信息
self.networkType = this.$networkinfo.getCurrentNetworkType();
})
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions