摘要: <div class="centerModal" v-if="yjpic&&yjpic!=''" ref='centerModal'> <a-modal :getContainer="()=>$refs.centerModal" :visible="sfpic" :confirm-loading=" 阅读全文
posted @ 2021-08-04 20:06 吃鸡小能手 阅读(858) 评论(0) 推荐(1) 编辑
摘要: 两端str.replace(/^\s+|\s+$/gm, ''); 1、表达式“/(^s*)/g”去掉左边空格 2、表达式“/(s*$)/g” 去掉右边空格 3、使用方法 replace(/(^s*)/g, ""); 阅读全文
posted @ 2021-08-04 17:37 吃鸡小能手 阅读(63) 评论(0) 推荐(0) 编辑