<script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>

 

//methods里面

// 获取省份
 ready:function(){
                             var that=this;
                                  //获取本地IP地址
                              var cname = returnCitySN["cname"];
                              //给vuedata对象里的字段赋值
                              console.log(cname);
                          },

//页面挂载时

mounted() {
                    setInterval(this.getTableHeight, 500);
                    this.ready();
                },

相关文章:

  • 2021-12-30
  • 2021-12-10
  • 2021-11-07
  • 2021-12-05
  • 2021-12-05
  • 2021-11-30
  • 2021-11-30
  • 2021-11-30
猜你喜欢
  • 2021-12-09
  • 2021-09-19
  • 2021-08-07
  • 2021-11-27
  • 2021-12-15
  • 2021-12-05
  • 2021-12-15
  • 2021-12-10
相关资源
相似解决方案