1 :
//更省事
var files = fileInput.files;
var formData = new FormData();
//将所有文件插入formData
formData .append(“xx”,1)
for (var i=0; i<files.length; i++) {
formData.append(fileInput.name, files[i]);
}
var xhr = new XMLHttpRequest();
xhr.open('POST',"http://localhost/ajaxload/test.php",true);
//即可上传
xhr.send(formData);
Window.btoa // base64 =to=> asicll
Window.atob // ascill =to=base63
Html5 中的map标签(wow,图片里面可以添加链接了)
<img src=”xxx” usemap=”#map1”/>
<map name=”map” id=”#map1”>
<area target=”_bank” href=”xxxx” shape=”rect” coords=”0,100,200,300”></area>
</map>