![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
jsPc
js
视力
这个作者很懒,什么都没留下…
展开
-
javascript原型
所有函数都有一个显式原型属性prototype,指向原型对象,构造函数也是函数。所有对象都有一个隐式原型属性__proto__,指向原型对象,原型对象也是对象。原创 2023-04-19 09:39:35 · 86 阅读 · 0 评论 -
nvm node npm
nvm node npm原创 2022-12-06 16:52:12 · 104 阅读 · 0 评论 -
点击图标(文字)预览图片
<template> <div class="preview-page"> <i class="el-icon-question" @click="openViewer"></i> <el-image-viewer v-if="showViewer" :on-close="closeViewer" :url-list="picArr" /> </div></te原创 2022-04-22 19:10:52 · 658 阅读 · 0 评论 -
删除
deleteTable(e) { let that = this; this.$confirm("确定要删除吗?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning", }) .then(() => { let data = { paper_id: e,...原创 2021-01-07 09:47:06 · 122 阅读 · 0 评论 -
校验规则
{required: true, pattern: /^[1-9]\d*$/, message: '请输入正整数', trigger: 'blur'}原创 2021-01-03 14:17:47 · 133 阅读 · 0 评论 -
随机名字
getRandomName() { let chars = "ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678"; let maxPos = chars.length; let rand = ""; for (let i = 0; i < 2; i++) { rand += chars.charAt(Math.floor(Math.random() * maxPos)); ...原创 2020-12-25 18:53:30 · 237 阅读 · 1 评论 -
yyyy-mm-dd hh:mm:ss
formatDate(Date){ let Y = Date.getFullYear(); let M = Date.getMonth() + 1 < 10 ? '0' + Date.getMonth() + 1 : Date.getMonth() + 1; let D = Date.getDate() < 10 ? '0' + Date.getDate() : Date.getDate(); let h = Date.getHours() < 10 ? '0' + Da.原创 2020-12-25 17:23:11 · 102 阅读 · 0 评论