小测试
wyd_4219
踩坑
展开
-
map遍历点击事件传值
data_map_z.map((item, index) => { _str += '<img id="map_clas'+(index+1)+'" onclick="toBig('+index+')" class="po_is'+(index+1)+'" src="./标记.png"/>' })原创 2019-05-30 14:42:09 · 657 阅读 · 0 评论 -
map循环小测试
var data_li = document.getElementById("data_li") let str = '' console.log(arr.length) arr.map((item, index) => { str += '<li>' + '<span>' + item.name + '</span>' + ...原创 2019-05-28 14:33:25 · 91 阅读 · 0 评论