利用moment.js转化时间格式为YYYY年MM月DD日,或者是YYYY-MM-DD HH:MM:SS 等格式 1.在mian.js引入moment import moment from 'moment' Vue.prototype.$moment = 'moment' 2. 在main.js 设 ...
分类:
Web程序 时间:
2021-06-23 17:15:52
阅读次数:
0
前言 15. 定时器 本章内容为驱动基石之一。 驱动只提供功能,不提供策略。 原文:https://www.cnblogs.com/lizhuming/p/14922233.html 参考源码路径:include\linux\timer.h 参考例子就明白如何使用了。 15.1 内核函数汇总 KER ...
分类:
系统相关 时间:
2021-06-23 17:12:18
阅读次数:
0
jenkins部署vue项目 安装nodejs 配置nodejs的源,去官网查看需要安装的版本和介绍 V8.x: # curl --silent --location https://rpm.nodesource.com/setup_8.x | bash - yum安装node.js yum ins ...
分类:
其他好文 时间:
2021-06-23 17:07:38
阅读次数:
0
/** * 去除左侧空格 */ function lTrim(str) { if (str) { return str.replace(/(^\s*)/g,""); } return null } /** * 去除右侧空格 */ function rTrim(str) { if (str) { re ...
分类:
Web程序 时间:
2021-06-23 17:07:01
阅读次数:
0
// 创建 websocket.js 文件夹 let wsurl = 'ws://82.157.123.54:9010/ajaxchattest' let ws = null let weboscket_callback = null //获取 websocket 推送的数据 let websock ...
分类:
Web程序 时间:
2021-06-23 17:04:51
阅读次数:
0
项目搭建好之后 安装sass 依赖包 npm install --save-dev sass-loader //sass-loader依赖于node-sass npm install --save-dev node-sass 在build文件夹下的webpack.base.conf.js的rules ...
分类:
Web程序 时间:
2021-06-23 16:54:34
阅读次数:
0
Node.js安装 下载并默认安装node.js https://nodejs.org/en/ 检测是否安装成功 node -v npm -v 更换镜像地址 淘宝的cnpm npm install -g cnpm --registry=https://registry.npm.taobao.org ...
分类:
其他好文 时间:
2021-06-23 16:48:27
阅读次数:
0
简介 在 Kubernetes 中,调度是指将 Pod 放置到合适的 Node 上,然后对应 Node 上的 kubelet 才能够运行这些 Pod。K8s scheduler 就是用来调度 pod 的一个组件。 本文主要是通过源码了解调度器的部分工作流程。 源码分析 Based on Kubern ...
分类:
其他好文 时间:
2021-06-23 16:45:44
阅读次数:
0
原文链接:https://blog.csdn.net/qq_33207292/article/details/102624553 1.关于js js是单线程的,即主线程就只有一个 2.js事件循环 除了广义的同步任务和异步任务,对任务更细致费划分: macro-task(宏任务):包括整体代码 sc ...
分类:
Web程序 时间:
2021-06-23 16:38:08
阅读次数:
0
主要写父元素的内容 shoppingcar.js // @ts-nocheck import React, { Component } from "react"; import shoppingcar from "../css/shoppingcar.module.css"; import Head ...
分类:
其他好文 时间:
2021-06-23 16:29:42
阅读次数:
0