美文网首页
把对象里面所有的字符串数字转成Number类型

把对象里面所有的字符串数字转成Number类型

作者: 前端混合开发 | 来源:发表于2021-03-08 17:17 被阅读0次
    new children: {"rect":{"x":100,"y":100,"width":100,"height":100},"combin":{"0":{"x":"100","y":"100","width":"100","height":"100","children":{"custom_polygon":[{"points":[["-1","1"],["-1","1"],["1","-1"],["-1","-1"]],"x":"100","y":"100","width":"100","height":"100","fill":"color: black"},{"points":[["-1","1"],["-1","1"],["1","-1"],["-1","-1"]],"x":-3,"y":0,"width":173,"height":1000,"fill":"color: black"},{"points":[["-1","1"],["-1","1"],["1","-1"],["-1","-1"]],"x":-3,"y":0,"width":173,"height":1000,"fill":"color: black"},{"points":[["-1","1"],["-1","1"],["1","-1"],["-1","-1"]],"x":-3,"y":0,"width":173,"height":1000,"fill":"color: black"}]}}}}
    

    相关文章

      网友评论

          本文标题:把对象里面所有的字符串数字转成Number类型

          本文链接:https://www.haomeiwen.com/subject/tikpqltx.html