vue 中reactive 相关简介

Proxy const obj = new Proxy(target, handler); Vue3 将使用 ES6的Proxy 作为其观察者机制,取代之前使用的Object.defineProperty target: 被代理对象。 handler: 是一个对象,声明了代理target的一些

iohannes iohannes Published on 2025-03-18

vue setup 语法糖常见用法

获取this import { getCurrentInstance } from 'vue' const that = getCurrentInstance() 获取路由 // 跳路由 import router from "@/router/index" const routerpath =

iohannes iohannes Published on 2025-03-18

web socket

function createWorker() { const script_content = `class CircularQueue { constructor(size = 1) { this.size = size; this.data = new Array(size).

iohannes iohannes Published on 2025-03-18

vue中ref和reactive的区别

区别和联系 reactive() only takes objects, NOT JS primitives (String, Boolean, Number, BigInt, Symbol, null, undefined) ref() is calling reactive() behind t

iohannes iohannes Published on 2025-03-18

vue常用属性

props 作用 子组件定义变量, 父组件向子组件传递此变量的值 // son.vue <template> <div>{{numb}}</div> </template> <script lang="ts" setup> import {defineProps} from 'vue

iohannes iohannes Published on 2025-03-18

web worker

function createWorker() { const script_content = `self.addEventListener('message', function(e) { const result = e.data[0] + e.data[1]; pos

iohannes iohannes Published on 2025-03-18

web服务器vscode

普通安装 安装 wget https://code-server.dev/install.sh bash install.sh 配置 nano ~/.config/code-server/config.yaml 运行

iohannes iohannes Published on 2025-03-17

*和**

表达式中 **两个乘号就是乘方,比如2**4,结果就是2的4次方,结果是16 一个乘号*,如果操作数是两个数字,就是这两个数字相乘

iohannes iohannes Published on 2025-03-17

zmq

简介 ZMQ(ZERO MQ) 是个类似于 Socket 的一系列接口,用于 node 与 node 间的通信,node 可以是主机或者是进程。 ZMQ 使用 c/c++ 开发的。接口是 c (接口/实现文件 zmq.h/zmq.cp

iohannes iohannes Published on 2025-03-17

windows连GitHub被拒

背景 linux 用key可以连接到github,但是windows不行 错误提示 git@github.com: Permission denied (publickey) 解决办法 git config --global core.sshCommand “‘C:\Windows\System32

iohannes iohannes Published on 2025-03-17
Previous Next