小程序用不了的一些方法_整理

2019-10-17  本文已影响0人  浪浪山小妖_

1-1.问题:var data = new FormData() 报错FormData is not defined
1-2.解决方法:

//formData格式(get传参)如下
// ?goodsList[0].goodsId=&goodsList[0].count=&goodsList[1].goodsId=&goodsList[1].count=
    let goodFormData={};
    if (goodsListSelected.length > 0) {
      goodsListSelected.forEach((good,i) =>{
        let keyId=`goodsList[${i}].goodsId`;
        let keyCount=`goodsList[${i}].count`;
        goodFormData[keyId]=good.goodsId;
        goodFormData[keyCount]=good.count;

      })
    } 

2-1.问题:Object.append()报错 is not defined
2-2.解决方法:

        let keyId=`goodsList[${i}].goodsId`;
        let keyCount=`goodsList[${i}].count`;
        goodFormData[keyId]=good.goodsId;
        goodFormData[keyCount]=good.count;

3-1.问题:CSS :focus伪类选择器不支持
3-2.解决方法:

      //待定  

4-1小程序cssbox-sizing: border-box;对border大小失效

5-1地图外层节点border-radius失效(在真机中),可以在外层用内弧度三角定位四角

持续更新中...
--by Affandi ⊙▽⊙

上一篇下一篇

猜你喜欢

热点阅读