搜索结果
查询Tags标签: GetCity,共有 3条记录-
微信小程序结合腾讯地图定位当前城市(位置)
onl oad(options) {this.getUserLocation()},/*** 定位地点*/ getUserLocation: function () {let _this = thiswx.getLocation({type: gcj02, // type有两中类型,gcj02 是腾讯地图所能解析的success: res => {_this.setData({locationObj: res})// 调用获取城市名称方…
2022/4/21 20:42:47 人评论 次浏览 -
Vue三级联动
数据层:public List<City> GetCity(int Pid){return db.City.Where(w => w.ParentId == Pid).ToList(); }控制器:public ActionResult GetCity(int Pid) {return Json(dal.GetCity(Pid), JsonRequestBehavior.AllowGet); }Vue语法:let app = new Vue({el: "…
2021/8/26 23:09:26 人评论 次浏览 -
Vue三级联动
数据层:public List<City> GetCity(int Pid){return db.City.Where(w => w.ParentId == Pid).ToList(); }控制器:public ActionResult GetCity(int Pid) {return Json(dal.GetCity(Pid), JsonRequestBehavior.AllowGet); }Vue语法:let app = new Vue({el: "…
2021/8/26 23:09:26 人评论 次浏览