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

常见页面css布局

<html> <body> <div class="main"> <div class="top">top</div> <div class="left">left</div> <div class="cen

iohannes iohannes Published on 2025-03-17

使用vite+vue创建项目

install vite npm install -g vite npm list -g vite npm update -g vite create project npm create vite@latest my-vue-app project setup cd my-vue-app np

iohannes iohannes Published on 2025-03-14

腾讯云api签名

import { sha256 } from 'js-sha256'; const SECRET_ID = ""; const SECRET_KEY = ""; function getDate(timestamp) { const date = new Date(timestamp * 1

iohannes iohannes Published on 2025-03-14

透明glb模型

blender 着色器设置 原理化BSDF设置 基础色:alpha 设置为 0 IOR 折射率 设置为 1 alpha 设置为 0 three.js 设置

iohannes iohannes Published on 2025-03-14

页面元素居中

div 内元素居中 <div class="btn-center"> <el-button @click="onClear">Clear</el-button> <el-button type="primary" @click="onRun">Run</el-button> </div>

iohannes iohannes Published on 2025-03-14

div位置设置

自己水平居中 .my-div{ margin: auto; } 自己固定位置 居上 .my-div{ position: absolute; top: 0px; }

iohannes iohannes Published on 2025-03-14

el-table 可编辑

<script setup lang="ts"> import { onMounted, reactive } from "vue"; import { GetLatestOrder } from "/@/api/order-confirm"; let columns = reactive([

iohannes iohannes Published on 2025-03-14

es6中export和import

export // A.js export const A = 42 export const myA = 43 export const Something = 44 /////////////////////////// // more export example /////////////

iohannes iohannes Published on 2025-03-14

js ws订阅

export function subMoving(onOpenFun, onMsgFun, onCloseFun) { let lockReconnect = false; var url = window._CONFIG['domianURL'].replace("https:/

iohannes iohannes Published on 2025-03-13
Previous Next