1.放在在文档加载后激活函数:
$(document).ready(function)(){
$.getJSON('ip地址串').always((data) => { $('input[name="SF"]').val(data.city); });}复制代码
2.其他链接
https://zhidao.baidu.com/question/1702366365941299500.html
1.放在在文档加载后激活函数:
$(document).ready(function)(){
$.getJSON('ip地址串').always((data) => { $('input[name="SF"]').val(data.city); });}复制代码
2.其他链接
https://zhidao.baidu.com/question/1702366365941299500.html
转载于:https://juejin.im/post/5c949c04f265da60c833e858