摘要: ( 1 ) replace正则匹配方法 去除字符串内所有的空格:str = str.replace(/\s*/g,""); 去除字符串内两头的空格:str = str.replace(/^\s*|\s*$/g,""); 去除字符串内左侧的空格:str = str.replace(/^\s*/,"") 阅读全文
posted @ 2018-11-12 19:54 ZJT_T 阅读(492) 评论(0) 推荐(0) 编辑
摘要: React: flux: 从events模块引入 emit on 方法 redux: 从redux引入createStore Vuex: 阅读全文
posted @ 2018-11-12 10:27 ZJT_T 阅读(779) 评论(0) 推荐(0) 编辑