摘要:
官方网址:https://www.tailwindcss.cn/docs/installation 安装步骤: 直接安装 创建文件 tailwindcss.css main.js全局引入文件 tailwindcss.css 在项目更目录下执行初始化配置文件指令 第一步:直接安装 npm instal 阅读全文
摘要:
一、安装生成二维码插件qrcode.js npm install --save qrcodejs2 二、封装组件 <template> <div> <div id="qrcode"></div> </div> </template> <script> // 二维码 import QRCode fro 阅读全文
摘要:
地址:https://github.com/xlsdg/vue-countup-v2 在线地址:https://inorganik.github.io/countUp.js/ Installation $ npm install --save countup.js vue-countup-v2 Us 阅读全文
摘要:
function importRoutes() { const routes = []; const context = require.context('./modules', true, /\.js$/); // 指定要导入的目录和文件匹配规则 context.keys().forEach((f 阅读全文
摘要:
在文件中查找:Command+F 在文件中替换:Command+R 回到顶部:Alt+P 回到底部:Alt+M 进到函数里面:Command+鼠标左键 返回上次位置:Command+Alt+键盘左箭头 回到之前:Command+Alt+键盘右箭头 跳转到指定的行:Command+L 关闭当前文件右侧 阅读全文
摘要:
Vue 中给图片添加时间水印,可以通过在图片上叠加一层带有日期时间的透明图层来实现。具体的实现方式及步骤如下: 在 Vue 的 template 中加载原始图片和水印图片。 在 Vue 的 script 中计算日期时间字符串,并根据需要生成对应的日期时间图片(可以借助 Canvas API 来绘制) 阅读全文
摘要:
前言: 记录在vue中使用threejs步骤: 一、安装 npm install three --save 安装完成如下图: 二、 引入 // 引入threejs核心模块 import * as THREE from "three" // 引入OrbitControls import { Orbit 阅读全文
摘要:
<template> <div ref="box_Ref" class="box" @mousedown="moveStart" @mousemove="moving" @mouseup="moveEnd" :style="{ width: (nodeInfo.width || 40) + 'px' 阅读全文
摘要:
_.cloneDeep(value) 这个方法类似_.cloneDeep,除了它会递归拷贝 value。(注:也叫深拷贝)。 例子: var objects = [{ 'a': 1 }, { 'b': 2 }]; var deep = _.cloneDeep(objects); console.lo 阅读全文
摘要:
网页中表格和列表随处可见,所以我们需要掌握各个标签的用法以及区别。 表格 简单的HTML表格由table元素以及多个tr th或td元素组成。这几个都是双标签。 tr定义行 th定义表头 td定义表格单元 两行两列的表格,常见代码:(运行结果自己查看) <table> <tr> <th>序号</th 阅读全文