摘要: 1.属性名是拼接的或者表达式 es5: es6: 2. 替换空格 str.replace(/^\s*|\s$/g, '') // 替换字符串两端的空格 str.replace(/\s*/g, '') // 替换字符串的所有空格 阅读全文
posted @ 2018-11-04 11:04 槑蕊 阅读(81) 评论(0) 推荐(0)