- 博客(7)
- 资源 (5)
- 收藏
- 关注
原创 typeScript基础
1、类型推断let fun = (param:string | number) { if(<string>param === 'str'){ xxx } if(<number>param === 1){ xxx }}
2022-04-02 16:01:25 626
原创 js_util
1、js导出文件 //vue下载file-saver import * as FileSaver from 'file-saver'; FileSaver.saveAs( new Blob([JSON.stringify(exportComponent)], { type: 'text/plain;charset=utf-8', }), `${this.rightClickComponent.name + Dat
2021-12-24 11:25:14 263
原创 git相关命令
1、git暂存区 通过git stash存入暂存区 git stash pop恢复之前暂存的改动git stash 单个文件git stash push js/common.jsgit stash 多个文件git stash push js/index.js js/second.js js/***.jsgit stash 部分文件git stash -p但是如果直接git stash的话,会将当前所有文件都存储起来,而我只想存储两个配置文件,其他的全部一起commit,应
2021-11-19 11:29:27 393
原创 vue2、3面试题
代码层面主要是Composition -apisetup是组合式(Composition)编程的入口,setup接受两个值:props 和 contextprops(父组件向子组件传值)context父组件 helloworld<template> <div class="hello"> <helloSon @myFun="myFun" :toSon="fatherInfo"></helloSon> </div><
2021-10-28 14:53:34 1316 3
原创 2022javascript面试题
1、实现 new 运算符let _new = function(func) { //创建一个空对象 o,并且继承构造函数的原型对象 let nullObject = Object.create(func.prototype); //执行构造函数,并且上下文 this 指向 nullObject 对象 let k = func.call(nullObject); //如果构造函数返回的是对象就返回该对象,否则返回 nullObject 对象 if(typeof k === 'obj
2021-10-28 14:51:57 918 1
原创 vue3+typescript+elementplus 封装的日、月、年多选
vue3+typescript+elementplus 封装的日、月、年多选代码提交到码云了,记得点个赞哟https://gitee.com/wei_bao_lin/vue3-ts-element-choose-date跳转到码云,记得点个赞哟
2021-08-30 13:58:26 402
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人