Uncaught (in promise) TypeError: Cannot read property 'currentTarget' of undefined无法读取未定义的属性“

https://blog.csdn.net/Eileen_crystal/article/details/79701632
currentTarget不能有大写
改为currenttarget

onShow: function (e) {
    let that = this;
    util.request(api.GetCountryList).then(function (res) {



      that.setData({
        
        Country_List: res.CountryList
      });


      var cityNameTemp = e.currenttarget.dataset.name
      //这是(if)作为区别查询按钮和country和province区别 
      console.log(cityNameTemp)


      


     

      });
      }

你可能感兴趣的:(Uncaught (in promise) TypeError: Cannot read property 'currentTarget' of undefined无法读取未定义的属性“)