当前位置:首页 > Z先生 第7页
Z先生

Z先生 管理员

来自陕西汉中的Z先生,专注于H5以及PHP开发。

180 篇文章 3 次评论

问题: - did you register the component correctly......

Z先生5年前 (2020-12-19)前端1016
问题: - did you register the component correctly......
问题:无法使用tree组件提示 Unknown custom element:<a-tree> - did you register the component correctly? Fo…

【原创】Promise循环执行,以及延时循环

Z先生5年前 (2020-11-28)前端1065
演示代码//核心代码 function promiseMain(page) { return new Promise(function(resolve,&…

js关于this的小技巧

Z先生5年前 (2020-11-19)前端989
这段时间,vue写的多了,习惯了es6的方式写函数,但是这种写法很容易导致this失效,比如刚刚发布的vue深度监听的问题,用了es6的写法,this就没法用,换回传统写法就可以了。// es6写法,…

vue深度监听

Z先生5年前 (2020-11-19)前端1054
还是不废话,直接上干货watch: { data: { handler: (newVal, oldVal) => { console.log(‘data’, newVal); }, deep:…

import、require互相替换写法

Z先生5年前 (2020-11-18)前端982
首先,Module 语法是 JavaScript 模块的标准写法,坚持使用这种写法。使用import取代require。// badconst moduleA = require('moduleA')…

js 日期时间的格式化

Z先生5年前 (2020-11-16)前端932
将日期时间转换为指定格式,如:YYYY-mm-dd HH:MM:SS 表示2019-06-06 19:45:54function dateFormat(fmt, date) { let re…

JS数组查找、删除元素

Z先生5年前 (2020-11-14)前端962
数组查找方法一:indexOf()——ES5const array = ['apple', 'banance', 'orange']array.indexOf('apple')…

网站压力测试之ab命令

Z先生5年前 (2020-11-11)服务器运维1111
一、什么是ab?ab是apachebench命令的缩写。ab的原理:ab命令会创建多个并发访问线程,模拟多个访问者同时对某一URL地址进行访问。它的测试目标是基于URL的,因此,它既可以用来测试apa…

Centos GIT强制更新、默认保存密码

Z先生5年前 (2020-11-10)服务器运维1058
输入一下命令,运行的时候,第一输入正确的账号密码系统会自动记录git config --global credential.helper store克隆git clone http://git地址.g…

UNIAPP内容区域高度定义

Z先生5年前 (2020-11-08)前端1037
代码如下height: calc(100vh - var(--window-top) - var(--window-bottom));CSS变量uni…