
js
滑雪的
佛系
展开
-
sina接口获取当前省市区
//引入jquery.js 根据ip定位$.getScript('http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js',function(){ alert(remote_ip_info.country);//国家 alert(remote_ip_info.province);//省份 alert(remo转载 2017-08-03 20:09:07 · 802 阅读 · 0 评论 -
ajax上传表单带附件
//FormData是html5的接口,使用它一行代码便可以拿到整个form表单对象:var form = new FormData(document.getElementById("form"));<!DOCTYPE html> <html> <head> <script src="js/jquery-1.9.1.min.js"></script> <meta c转载 2017-08-03 21:29:43 · 360 阅读 · 0 评论