摘要: <template> <div class="container my-4 mx-auto p-4"> <el-radio-group v-model="labelPosition" label="label position"> <el-radio-button label="left">Left 阅读全文
posted @ 2023-09-25 15:57 bronana 阅读(96) 评论(0) 推荐(0) 编辑
摘要: scrollBehavior 可以记录滚动条位置,也可以自己设定滚动条位置 const router = createRouter({ // createRouter返回一个router实例 history: createWebHistory(), scrollBehavior: (to, from 阅读全文
posted @ 2023-09-25 15:52 bronana 阅读(3) 评论(0) 推荐(0) 编辑
摘要: loadingbar <template> <div class="wrapper"> <div ref="bar" class="bar"></div> </div> </template> <script setup lang="ts"> import { onMounted, ref } fr 阅读全文
posted @ 2023-09-25 15:35 bronana 阅读(296) 评论(0) 推荐(1) 编辑
摘要: 安装 npm i -S animate.css main.ts 引入 import 'animate.css'; router const routes: RouteRecordRaw[] = [ { path: '/', alias: ['/login'], component: () => im 阅读全文
posted @ 2023-09-25 15:31 bronana 阅读(40) 评论(0) 推荐(0) 编辑
摘要: <template> <div> <div class="bg-white rounded-lg font-light w-96 shadow p-4"> <div class="text-center text-lg mb-4">后台管理系统</div> <form @submit.prevent 阅读全文
posted @ 2023-09-20 13:46 bronana 阅读(48) 评论(0) 推荐(0) 编辑
摘要: const usingSecretBook = () => { const pattern = [ 'ArrowUp', 'ArrowUp', 'ArrowDown', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'ArrowLeft', 'ArrowRight' 阅读全文
posted @ 2021-03-12 03:19 bronana 阅读(328) 评论(0) 推荐(0) 编辑
摘要: const fs = require('fs'); const zlib = require('zlib'); const gzip = zlib.createGzip(); const srcFile = './yarn.lock'; // 要压缩的文件 const distFile = 'yar 阅读全文
posted @ 2021-03-07 19:37 bronana 阅读(386) 评论(0) 推荐(0) 编辑
摘要: 函数声明 function foo () {} 函数表达式 var foo = function () {} (function() {})() var foo = function bar() {} return function () {} 函数声明会被提前 var sum = add(1,2) 阅读全文
posted @ 2016-02-18 10:36 bronana 阅读(258) 评论(0) 推荐(0) 编辑
摘要: new Array(100), 这个数组就有[undefined, undefined, ...100个] ,那么久有99个空隙(,) join是用join(分隔符) 把这99个空隙代替了 // join 叠加几次的方法 function beishuStr(str, n){ return new 阅读全文
posted @ 2016-02-18 09:55 bronana 阅读(286) 评论(0) 推荐(0) 编辑
摘要: var arr = [1,2,3,4,5,1,2,3,4,5]; // 判断是否是数组 // ES5提供Array.isArray, isArray是Array构造器上面的 console.log(Array.isArray(arr)); // true // 2,用 [] instanceof A 阅读全文
posted @ 2016-02-18 09:41 bronana 阅读(146) 评论(0) 推荐(0) 编辑