call和apply的应用场景: 判断数据类型: Object.prototype.toString用来判断类型再合适不过,借用它我们几乎可以判断所有类型的数据: function isType(data, type) { const typeObj = { '[object String]': ' ...
分类:
移动开发 时间:
2021-03-17 14:28:08
阅读次数:
0
call call()方法功能:指定函数的this,执行函数并传参 参数: fn.call(thisArg,arg1,arg2,ar3,......) ? thisArg 指定让this指向的对象,若指定了null或者undefined则内部this指向window ? arg1,arg2,ar3, ...
分类:
移动开发 时间:
2021-03-17 14:11:32
阅读次数:
0
1、创建指令文件bthPermission.js,编写自定义指令: import Vue from 'vue'; import api from "api"; /**权限指令**/ const has = Vue.directive('has', { bind: async function (el ...
分类:
其他好文 时间:
2021-03-10 13:37:17
阅读次数:
0
flume-netcat-logger.conf 文件编写: # Name the components on this agent a1.sources = r1 a1.sinks = k1 a1.channels = c1 # Describe/configure the source a1.s ...
分类:
Web程序 时间:
2021-03-06 14:54:47
阅读次数:
0
组件传参 散记点(父传子) v-bind传入Number,Function,Object等类型 <mycomponent :count="100" :data="{name: "wise"}" :list="['foo','bar']" :action="() => {}"/> 传递组件,组件变量形 ...
分类:
其他好文 时间:
2021-03-06 14:19:47
阅读次数:
0
第一部分:入口函数 js的入口函数:window.onload = function(){alert("页面所有资源加载完后,开始执行")}; jquery的入口函数: 第一种: $(document).ready( function(){ alert("DOM树加载完成后,开始执行") } ); ...
分类:
Web程序 时间:
2021-03-03 12:19:02
阅读次数:
0
#拉取image docker pull redis 配置redis.conf配置文件redis.conf文件存放在成都号1803百度网盘 docker 目录 修改redis.conf配置文件,主要配置的如下: bind 127.0.0.1 #注释掉这部分,使redis可以外部访问 daemoniz ...
分类:
其他好文 时间:
2021-03-01 13:12:31
阅读次数:
0
1.v-bind: v-bind attribute 被称为指令,在这里,该指令的意思是:“将这个元素节点的 title attribute 和 Vue 实例的 message property 保持一致”。 <div id="app"> <span v-bind:title="message"> ...
分类:
其他好文 时间:
2021-02-18 12:54:53
阅读次数:
0
Introduction: It's a paper to reorganize the knowledge of List Rendering in Vue official guide. So a lot of content is from the Vue Official guide. Th ...
分类:
其他好文 时间:
2021-02-16 12:03:49
阅读次数:
0
Mongodb启动命令mongod参数说明mongod的主要参数有: 基本配置 --quiet # 安静输出 --port arg # 指定服务端口号,默认端口27017 --bind_ip arg # 绑定服务IP,若绑定127.0.0.1,则只能本机访问,不指定默认本地所有IP --logpat ...
分类:
数据库 时间:
2021-02-15 11:54:59
阅读次数:
0