03 2019 档案
摘要:下载安装Brew: brew brew又叫Homebrew,是Mac中的一款软件包管理工具,通过brew可以很方便的在Mac中安装软件或者是卸载软件.一般Mac电脑会默认安装有brew.常用指令如下: brew 搜索软件brew search nginx brew 安装软件brew install
阅读全文
摘要:1、Display the typeof all variables types 2、convert a number to a string. 3、find out if a variables is an Array.
阅读全文
摘要:1、Javescript in <head> 2、Javescript in <body> 3、Javescript in an external file、url、 folder writing into the html output / html elemnt / window alert b
阅读全文
摘要:1、Javascript can change html content 2、Javascript can change html attributes 3、Javascript can change CSS style 4、Javascript can change hide show html
阅读全文
摘要:CSS Transitions CSS transitions allows you to change property values smoothly (from one value to another), over a given duration. How to Use CSS Trans
阅读全文
摘要:CSS 2D Transforms CSS Transforms CSS transforms allow you to translate, rotate, scale, and skew elements. A transformation is an effect that lets an e
阅读全文
摘要:1.文本 第一种“Mustache” 语法(双大括号)写法第二种 用v-text的指今写法第三种和第四是对es6写法的拓展写法,称模板字符串 2. v-once 通过指令我们可以对文本值进行一次性赋值操作,只进行第一次的数据渲染,如果再次改变值,文本值也不会改变 应用场景 : 一般是用在组件树中传递
阅读全文
摘要:vue webpack所用基础包: package.json: webpack.config.js basic config: index.js. entry file: index.html app.vue component
阅读全文
摘要:date.replace(/(\d{4})(\d{2})(\d{2})/g,'$1-$2-$3');
阅读全文
摘要:多个输入框发生变化时,setState:
阅读全文
摘要:memberEntitiy:
阅读全文
摘要:1、定义变量 使用: 2、定义函数
阅读全文
摘要:1、CSS Tables To specify table borders in CSS, use the border property. The example below specifies a black border for <table>, <th>, and <td> elements
阅读全文
摘要:1、CSS Links links can be styled differently depending on what state they are in. The four links states are: a:link - a normal, unvisited link a:visite
阅读全文
摘要:1、CSS Text text color, text align... Text Decoration The text-decoration property is used to set or remove decorations from text. The value text-decor
阅读全文
摘要:1、Three Ways to Insert CSS External style sheet Internal style sheet Inline style External Style Sheet With an external style sheet, you can change th
阅读全文
摘要:一、变量 1、用有意义且常用的单词命名变量 2、保持统一 可能同一个项目对于获取用户信息,会有三个不一样的命名,应该保持统一。 3、每个常量都该命名 可以用 buddy.js 或者 ESLint 检测代码中未命名的常量。 4、可描述 通过一个变量生成了一个新变量,也需要为这个新变量命名,也就是说每个
阅读全文
摘要:1、多重判断时使用 Array.includes 2、使用默认参数和解构 在JavaScript中我们总是需要检查 null / undefined的值和指定默认值: 我们可以通过声明 默认函数参数 通过默认参数以及解构从而避免判断条件 fruit && fruit.name 我们也需要声明空对象
阅读全文