上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 44 下一页
摘要: enum.js /** * 获取枚举值:STATUSMAP.TTT * 获取枚举描述:STATUSMAP.getDesc('SH') * 通过枚举值获取描述:STATUSMAP.getDescFromValue('TG') */ function createEnum(definition) { c 阅读全文
posted @ 2023-02-15 21:05 Felix_Openmind 阅读(103) 评论(0) 推荐(0)
摘要: 参考:https://1loc.dev/ 将一个值转为数组的方法 const castArray = (value) => (Array.isArray(value) ? value : [value]); caseArray(1); // [1] 或直接使用Array.of(val)这个构造方法代 阅读全文
posted @ 2023-02-09 16:08 Felix_Openmind 阅读(66) 评论(0) 推荐(0)
摘要: <head> <meta charset="utf-8"> <title></title> <style> * { margin: 0; padding: 0; box-sizing: border-box; } .container { display: flex; flex-wrap: wrap 阅读全文
posted @ 2023-02-09 14:06 Felix_Openmind 阅读(912) 评论(0) 推荐(0)
摘要: 2023年02月01日 编程题 const obj = { name: "张三", age: 10 } const obj1 = obj; let obj2 = obj1; obj2.age = 21; console.log(obj.age); // 21 obj2 = { age: 20 } c 阅读全文
posted @ 2023-02-01 22:36 Felix_Openmind 阅读(35) 评论(0) 推荐(0)
摘要: 参考:http://t.csdn.cn/5700Y ?? - 空值合并操作符 结构:eg: let res = num01??num02; ?? 当左侧的变量为null或undefined的时,返回左侧num02否则返回自身num01(num01相当于null和undefined下兜底作用) let 阅读全文
posted @ 2023-01-22 15:22 Felix_Openmind 阅读(144) 评论(0) 推荐(0)
摘要: nvm下载 安装包下载地址: https://github.com/coreybutler/nvm-windows/releases # 安装指定node版本 nvm install v14.15.0 # 运行指定node版本 nvm use v14.15.0 # 切换到最新的node版本 nvm 阅读全文
posted @ 2023-01-07 12:04 Felix_Openmind 阅读(54) 评论(0) 推荐(0)
摘要: // src/router/routes.ts import type { RouteRecordRaw } from 'vue-router' const routes: RouteRecordRaw[] = [ // 文章相关的路由统一放在这里管理 { path: '/article', nam 阅读全文
posted @ 2023-01-06 05:06 Felix_Openmind 阅读(97) 评论(0) 推荐(0)
摘要: 路由别名配置 - alias 配置路由重定向,当用户访问/a的时候,URL会被替换/b之后匹配实际路由/b 配置路由别名,/a的别名是/b,当用户访问/b的时候,URL会保持为/b,但路由匹配为/a,和用户访问/a一样 const routes: Array<RouteRecordRaw> = [ 阅读全文
posted @ 2023-01-05 13:16 Felix_Openmind 阅读(133) 评论(0) 推荐(0)
摘要: 访问网页主域名的时候,识别用户身份跳转到不同的首页,配置路由重定向 const routes: Array<RouteRecordRaw> = [ // 访问主域名的时候,根据用户的登录信息,重定向到不同的页面 { path: "/", redirect: () => { // loginInfo是 阅读全文
posted @ 2023-01-05 13:05 Felix_Openmind 阅读(1431) 评论(0) 推荐(0)
摘要: 子组件Child.vue <template> <hr/> {{INFO}} <hr/> <button @click="changeInfo">changeInfo</button> </template> <script setup lang="ts"> import {ref, reactiv 阅读全文
posted @ 2023-01-05 11:00 Felix_Openmind 阅读(549) 评论(0) 推荐(0)
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 44 下一页
*{cursor: url(https://files-cdn.cnblogs.com/files/morango/fish-cursor.ico),auto;}