首页 > TAG信息列表 > Sty

一分钟让你理解构造函数原型链关系

    <script>         function Sty(name, age) {             this.name = name             this.age = age             // 放在这里的话  每次实例化,sing是个函数,属于复杂数据类型,每次都会开辟不同的内存空间,会存在浪费内存的情况          

短视频直播系统,Vue实现element-ui弹框可以拖拽

短视频直播系统,Vue实现element-ui弹框可以拖拽 一、utils文件夹下创建dialog.js文件   import Vue from 'vue' // v-dialogDrag: 弹窗拖拽Vue.directive('dialogDrag', {  bind(el, binding, vnode, oldVnode) {    const dialogHeaderEl = el.querySelector('.el-dialog__he

vue dialog指令 拖拽位置及弹窗宽度拖大 拖小

utils/dialogDrag.js import Vue from 'vue' // v-dialogDrag: 弹窗拖拽 Vue.directive('dialogDrag', { bind(el, binding, vnode, oldVnode) { const dialogHeaderEl = el.querySelector('.el-dialog__header') const dragD

el-dialog可拖拽

1. 先创建一个js文件 //directive.js文件 import Vue from 'vue' // v-dialogDrag: 弹窗拖拽 Vue.directive('dialogDrag', { bind(el, binding, vnode, oldVnode) { const dialogHeaderEl = el.querySelector('.el-dialog__header') const drag

Latex 安装包 metropolis

latex 安装包metropolis 官方步骤如下,略显简略: Installing Metropolis from source, like any Beamer theme, involves four easy steps: Download the source with a git clone of the Metropolis repository or as a zip archive of the latest development version. Com

608F(待解决)迷宫问题

题目http://codeup.cn/problem.php?cid=100000608&pid=5 问题:递归边界考虑的不完善。有太多考虑不完善的地方。但是好歹把大概框架写出来了。 #include<stdio.h> int a[16][16],b[16][16]={0},n,m; int cnt=0; void DFS(int stx,int sty,int ex,int ey){ if(stx==n||sty==m|

弹窗拖拽自定义directive

1 import Vue from 'vue'; 2 3 // v-dialogDrag 弹窗拖拽 4 Vue.directive('dialogDrag', { 5 bind(el, binding, vnode, oldVnode) { 6 const dialogHeaderEl = el.querySelector('.el-dialog__header'); 7 const dragDom = el.

Latex安装宏包(package)

有时候在编译一些latex模板时会遇到package not found(xxx.sty找不到)的问题,解决办法如下: (1)在https://www.ctan.org/pkg/fancyhdr中寻找到对应的宏包并下载下来; (2)如果下载解压得到的宏包没有sty,只有ins文件,则打开命令控制台,并cd 到下载的宏包文件夹下,然后使用“latex xxx.ins”获得