formData_html5_map标签

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>

本文作者:方方和圆圆

本文链接:https://www.cnblogs.com/diligenceday/p/3556416.html

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   方方和圆圆  阅读(589)  评论(0编辑  收藏  举报

再过一百年, 我会在哪里?

💬
评论
📌
收藏
💗
关注
👍
推荐
🚀
回顶
收起
点击右上角即可分享
微信分享提示