• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 








 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

[置顶] vue
摘要: nvm安装教程 npm install -g typescript 安装TSC npm -g install typescript@3.1.3 安装指定版本 vue-router钩子函数 npm config get prefix 查找node路径 如果输入 tsc -V 报一下错误 需要配置环境变 阅读全文
posted @ 2019-02-20 20:55 我是一枚前端小菜鸟 阅读(1910) 评论(0) 推荐(0)
 

[置顶] html css
摘要: 禁止用户点击(任何标签都可以使用) { pointer-events: auto;/* 默认值。元素对指针事件做出反应,比如 :hover 和 click。*/ pointer-events: none; /* 元素不对指针事件做出反应。*/ pointer-events: initial; /* 阅读全文
posted @ 2019-01-25 11:29 我是一枚前端小菜鸟 阅读(730) 评论(0) 推荐(0)
 

[置顶] JS常用方法
摘要: Array: slice(start,end) 从索引为start的开始取,取到索引为end的为止,end的取不到, 如果end为负数,表示索引为数组的长度+负数. toString() 把数组转换成字符串,每一项用,分割 valueOf() 返回数组对象本身 indexOf()从数组开头开始获取 阅读全文
posted @ 2019-01-21 10:48 我是一枚前端小菜鸟 阅读(8011) 评论(0) 推荐(1)
 

2024年11月28日

常用正则
摘要: num.replace(/^(\d+\.\d)\d+/, "$1"); // 保留一位小数 num.replace(/(\.\d{2})\d+/, '$1') // 保留2位小数 replace(/[^\d]/g, "") // 保留整数 replace(/\s/g, '') // 去除所有空格 r 阅读全文
posted @ 2024-11-28 10:25 我是一枚前端小菜鸟 阅读(12) 评论(0) 推荐(0)
 

2024年4月25日

element 表格根据数组合并单元格
摘要: :span-method="(...arg)=>strategySpanMethodDown(...arg,deptLevelData)" deptLevelData: 为需要处理的数组 // 合并单元格函数 strategySpanMethodDown: function({ row, colum 阅读全文
posted @ 2024-04-25 15:42 我是一枚前端小菜鸟 阅读(23) 评论(0) 推荐(0)
 

2024年4月1日

vue中$forceUpdate()和$nextTick()使用
摘要: $forceUpdate()使用: this.$forceUpdate(): 强制刷新组件,只会触发组件的beforeUpdate和updated两个声明周期 this.$forceUpdate(); $nextTick()使用 this.$nextTick(() => {要执行的代码}) 跳过此次 阅读全文
posted @ 2024-04-01 16:48 我是一枚前端小菜鸟 阅读(629) 评论(0) 推荐(0)
 

2024年1月16日

数字转成汉字的方法
摘要: changeNumToHan(num) { var arr1 = ['零', '一', '二', '三', '四', '五', '六', '七', '八', '九'] var arr2 = ['', '十', '百', '千', '万', '十', '百', '千', '亿', '十&# 阅读全文
posted @ 2024-01-16 15:25 我是一枚前端小菜鸟 阅读(250) 评论(0) 推荐(0)
 

2024年1月8日

vscode设置说明
该文被密码保护。 阅读全文
posted @ 2024-01-08 09:59 我是一枚前端小菜鸟 阅读(0) 评论(0) 推荐(0)
 

2023年6月8日

小功能-复制文字
摘要: copy() { // 创建input标签 var input = document.createElement('input') // 将input的值设置为需要复制的内容(this.typePromptText 自定义的) input.value = this.typePromptText // 阅读全文
posted @ 2023-06-08 15:14 我是一枚前端小菜鸟 阅读(52) 评论(0) 推荐(0)
 

2023年5月6日

前端自定义分页
摘要: <el-table size="mini" stripe border fit height="406px" highlight-current-row :header-cell-style="{background:'#F0F3F8'}" :data="historyResearchUploadL 阅读全文
posted @ 2023-05-06 17:41 我是一枚前端小菜鸟 阅读(49) 评论(0) 推荐(0)
 

2023年1月9日

wps 笔记
摘要: WPS 开放平台 const table = wps.WpsApplication().ActiveDocument.Bookmarks.Item(bookmark) // 获取书签是否存在 table.Cell(1,1).Range.ParagraphFormat.Alignment = 0 // 阅读全文
posted @ 2023-01-09 10:07 我是一枚前端小菜鸟 阅读(456) 评论(0) 推荐(0)
 

2022年11月27日

vue3+ts
摘要: 创建vue3项目 vue create 项目名称 阅读全文
posted @ 2022-11-27 17:07 我是一枚前端小菜鸟 阅读(128) 评论(0) 推荐(0)
 

2022年11月13日

vue2.js 解决跨域问题
摘要: const path = require('path'); function resolve(dir) { return path.join(__dirname, dir) } module.exports = { pages: { index: { entry: 'src/main.js' } } 阅读全文
posted @ 2022-11-13 10:51 我是一枚前端小菜鸟 阅读(509) 评论(0) 推荐(0)
 
下一页