![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue3.0
我还就不信了啊
这个作者很懒,什么都没留下…
展开
-
手机号中间加星处理
提示:首先保证你的电话号码是一个11位数的正常手机号 接下来处理中间变成星号 方法1 (str) => { if (null != str && str != undefined) { var pat = /(\d{3})\d*(\d{4})/; return str.replace(pat, "$1****$2"); } else { return ""; } }; 方法2 (str) => { if (null != str.原创 2021-09-13 16:56:58 · 1848 阅读 · 0 评论 -
vue3.0 组件传值
vue3.0组件传值 子组件 代码如下(示例): <template> <p @click="handle">{{ test }}</p> </template> <script> export default { props: { test: String, }, setup(props, ctx) { const handle = () => { ctx.emit("handle1");原创 2020-09-25 13:56:05 · 1477 阅读 · 0 评论