js判断字符串数据类型
摘要:
mounted() { this.isJSON('{"key":1232,"a":2},{"key":1232,"a":3}')}, methods: { isJSON(str) { if (typeof str == "string") { try { var jsonObj = JSON.par 阅读全文
posted @ 2021-07-07 16:05 阿长*长 阅读(592) 评论(0) 推荐(0)
posted @ 2021-07-07 16:05 阿长*长 阅读(592) 评论(0) 推荐(0)