2023年1月19日
摘要: 1.安装 npm i @vueuse/core 2.使用 useClipboard 剪贴板 <script setup lang="ts"> import { ref } from 'vue' import { useClipboard, usePermission } from '@vueuse/ 阅读全文
posted @ 2023-01-19 14:58 gwjieiee 阅读(556) 评论(0) 推荐(0) 编辑
2023年1月5日
摘要: 1. vite.config.ts或者vite.config.js文件 server: { port: 3001, host: '0.0.0.0', open: true, proxy: { // 代理配置 '/api': { target: 'https://localhost:44342', c 阅读全文
posted @ 2023-01-05 10:49 gwjieiee 阅读(954) 评论(0) 推荐(0) 编辑
2021年3月17日
摘要: <input type="number" onKeypress="return(/[\d\.]/.test(String.fromCharCode(event.keyCode)))" placeholder="请输入手机号码" /> 阅读全文
posted @ 2021-03-17 18:02 gwjieiee 阅读(443) 评论(0) 推荐(0) 编辑
2020年9月23日
摘要: Object.defineProperty方法可以在一个对象上定义一个新的属性,或者修改该对象原有的属性,并返回该对象。 基础的语法格式如下: 1 var data = {}//定义一个对象 2 Object.defineProperty(data,'name',{ 3 configurable:f 阅读全文
posted @ 2020-09-23 15:49 gwjieiee 阅读(179) 评论(0) 推荐(0) 编辑