uni-app加载中,加载结束

JS部分代码

methods: {
	fangfa(){
		var that = this;
		uni.showLoading({title: '加载中',mask:true});
		uni.request({
		  url:'',
		  data: {},
		  method: 'POST',
		  header: '',
		  dataType: 'json',
		  success: function (res) {
		    //关闭加载中
			setTimeout(function () {uni.hideLoading();}, 100);
		  }
		})
	},
}

你可能感兴趣的:(uni-app笔记,js,javascript)