export default { // 两个对象合并 extend: function(target, source, deep) { target = target || {}; var sType = typeof source, i = 1, options; if (sType 'undef ...
分类:
其他好文 时间:
2020-07-15 15:11:36
阅读次数:
78
echo "export LC_ALL=en_US.UTF-8" >> /etc/profile source /etc/profile原因是因为没有配置正确的语言环境造成的 ...
分类:
其他好文 时间:
2020-07-14 18:20:49
阅读次数:
159
react新特性实例详解(memo、lazy、suspense、hooks) 1.memo 其实react.memo的实现很简单,就几行代码。 export default function memo<Props>( type: React$ElementType, compare?: (oldPr ...
分类:
其他好文 时间:
2020-07-14 18:19:34
阅读次数:
55
Convolutional Layer import torch in_channels, out_channels = 5, 10 width, height = 100, 100 kernel_size = 3 batch_size = 1 input = torch.randn(batch_s ...
分类:
其他好文 时间:
2020-07-14 13:50:42
阅读次数:
98
Spark on K8S 的几种模式 Standalone:在 K8S 启动一个长期运行的集群,所有 Job 都通过 spark-submit 向这个集群提交 Kubernetes Native:通过 spark-submit 直接向 K8S 的 API Server 提交,申请到资源后启动 Pod ...
分类:
Web程序 时间:
2020-07-14 09:25:00
阅读次数:
89
父传子: 父组件: 1 import React from 'react'; 2 import './App.css'; 3 //引入子组件 4 import Nav from "./components/Nav"; 5 export default class App extends React. ...
分类:
其他好文 时间:
2020-07-14 00:51:42
阅读次数:
61
最近终端启动很慢,查阅相关资料后发现是,因为nvm在安装的时候,需要在 ~/.bashrc(如果你的终端用的是bash)或者~/.zshrc(如果你的终端用的是zsh) 中添加: export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. " ...
分类:
其他好文 时间:
2020-07-14 00:28:38
阅读次数:
104
以前一直觉得export可有可无,虽然知道export是干嘛的,不就是把本地变量变成全局变量么(实际中叫环境变量),但是感觉好像没有这货也没影响,今天看了这篇博文,终于恍然大悟。用自己的语言,思维方式重新整理一遍 首先说明两个概念:父shell与子shell,从shellA中启动一个shell,称之 ...
分类:
系统相关 时间:
2020-07-13 18:37:04
阅读次数:
96
1.根据code ,寻找tree里面的选中对象 export function getActiveNode(tree,code){ tree: [{}] // 树型结构 let node = {}; finds(tree,code); function finds(tree,code) { for( ...
分类:
编程语言 时间:
2020-07-13 18:11:41
阅读次数:
75
<template> <div> #[[$END$]]# </div> </template> <script scoped> export default { name: "${COMPONENT_NAME}", props: { }, components: {}, computed: {}, ...
分类:
其他好文 时间:
2020-07-13 11:52:12
阅读次数:
113