ES6 模块化规范 ES6 在语言标准的层面上,实现了模块功能,而且实现得相当简单,旨在成为浏览器和服务器通用的模块解决方案。 其模块功能主要由两个命令构成:export 和 import。 export 命令用于规定模块的对外接口 import 命令用于输入其他模块提供的功能 /** 定义模块 m ...
分类:
其他好文 时间:
2020-07-04 20:33:15
阅读次数:
89
<template> <transition name="slide"> <div class="search_page"> 123 </transition> </template> <script> export default { name: "SearchPage", components: ...
分类:
Web程序 时间:
2020-07-04 12:00:44
阅读次数:
93
在golang官网下载源文件,解压,并添加到PATH。 ~ # tar -C /usr/local/ -xzvf go1.14.4.linux-amd64.tar.gz ~ # echo 'export PATH=$PATH:/usr/local/go/bin' >> /etc/profile ~ ...
分类:
其他好文 时间:
2020-07-03 23:38:40
阅读次数:
115
// 判断数组中是否有同一项,例如:["111","22","33","111"] 返回true export const isRepeat = arr => { var hash = {} for (var i in arr) { if (hash[arr[i]]) //hash 哈希 retur ...
分类:
编程语言 时间:
2020-07-03 19:11:53
阅读次数:
55
torch.nn 实现 模型的定义,网络层的定义,损失函数的定义。 import torch # N is batch size; D_in is input dimension; # H is hidden dimension; D_out is output dimension. N, D_in ...
分类:
其他好文 时间:
2020-07-03 15:53:09
阅读次数:
74
拿button组件举例 。 button.vue <template> <Button v-bind="$attrs"> <slot></slot> </Button> </template> <script> import {Button} from "element-ui"; export de ...
分类:
其他好文 时间:
2020-07-03 15:51:48
阅读次数:
113
http://www.ruanyifeng.com/blog/2013/07/gpg.html gpg --list-keysgpg --armor --output pubkey.asc --export [用户ID]导出私钥形式如下:gpg --armor --output prikey.asc ...
分类:
其他好文 时间:
2020-07-03 15:27:55
阅读次数:
70
环境准备 192.168.122.211 Consul Prometheus 192.168.122.212 node_export 服务安装 Consul # consul docker run --name consul -d -p 8500:8500 consul prometheus 配置 ...
分类:
其他好文 时间:
2020-07-03 12:53:47
阅读次数:
55
Get-ADUser -filter * -SearchBase 'OU=test1,OU=test2,DC=domain,DC=cn' -Properties SamAccountName,DisplayName,DistinguishedName|export-csv E:\work\AD\di ...
分类:
其他好文 时间:
2020-07-03 12:43:05
阅读次数:
74
项目情况: mobile、pc在同一个项目中,希望mobile项目引入重置rem比例的文件 缺点: 每个mobile的页面都需要引入、希望有大神知道怎么解决 1.新建rem.js文件 export function resetRem () { let html = document.document ...
分类:
其他好文 时间:
2020-07-02 20:02:47
阅读次数:
142