坑
1. Form表单Jquery.serialize()序列化问题
序列化会将空格转换为+号 使用.replace(/+/g," ")
2. js 转码
- 编码: document.write(encodeURIComponent(test1))
- 解码: document.write(decodeURIComponent(test1))
3. js 判断定义的Map 为空
imgUpdateMap = {}
console.log(JSON.stringify(imgUpdateMap)=='{}')