<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();
                },

相关文章:

  • 2022-12-23
  • 2021-09-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-27
猜你喜欢
  • 2021-06-04
  • 2022-12-23
  • 2022-12-23
  • 2022-01-19
  • 2021-09-30
  • 2022-12-23
  • 2022-03-05
相关资源
相似解决方案