摘要: vue3 <script setup> import { reactive, ref,onMounted ,onBeforeMount,onUnmounted} from 'vue' onMounted(() => { initWebsocket() }) onUnmounted(() => { W 阅读全文
posted @ 2024-01-29 14:29 \面朝阳光/ 阅读(10) 评论(0) 推荐(0) 编辑
摘要: const d = document.createElement('style'); d.setAttribute('type', 'text/css'); d.innerHTML = `html{ filter: grayscale(100%); -webkit-filter: grayscale 阅读全文
posted @ 2022-12-02 17:35 \面朝阳光/ 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 1. 使用 # 全局安装 npm install -g create-react-app # 构建一个my-app的项目 npx create-react-app my-app cd my-app # 启动编译当前的React项目,并自动打开 http://localhost:3000/ npm s 阅读全文
posted @ 2021-05-06 17:30 \面朝阳光/ 阅读(832) 评论(0) 推荐(0) 编辑
摘要: 完整引入import _ from 'lodash'// 这个方式 webpack 依然会将整个库打包。import { random, debounce, findLast } from 'lodash'按需引入单独引入import debounce from "lodash/debounce"; 阅读全文
posted @ 2021-04-02 11:34 \面朝阳光/ 阅读(2949) 评论(0) 推荐(1) 编辑
摘要: 起初 vue3.0 + ts 中安装swiper 6.4.5 一直报错,后终于解决 直接上代码 首先 要在 shims-vue.d.ts 文件中 添加 /* eslint-disable */ declare module '*.vue' { import type { DefineComponen 阅读全文
posted @ 2021-01-13 16:23 \面朝阳光/ 阅读(679) 评论(0) 推荐(0) 编辑
摘要: 文档 是这样的 function useQuery() { return new URLSearchParams(useLocation().search); } 使用 function demo (){ const history = useHistory(); history.get('name 阅读全文
posted @ 2020-12-30 20:41 \面朝阳光/ 阅读(3173) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-12-29 17:21 \面朝阳光/ 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-12-25 11:32 \面朝阳光/ 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-09-23 21:31 \面朝阳光/ 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 1、nginx和代码中配置好域名和端口 2、服务器安装node,我这里是安装的nvm 用nvm管理node 版本 具体的可以看篇文章 https://blog.csdn.net/and04292/article/details/79423037 3、安装pm2 npm install -g pm2 阅读全文
posted @ 2020-08-26 11:49 \面朝阳光/ 阅读(330) 评论(0) 推荐(0) 编辑