调试js代码

相关链接
Chrome DevTools Protocol
chrome-remote-interface(GitHub)
Debugger for Microsoft Edge

如何使用vscode调试浏览器中执行的js代码use DevTools as protocol client
chrome打开的时候...

使用vant-cli构建vue组件库

构建参考vant开发人员提供的demo:
vant-cli demo
遇到的问题问题:搭建好demo后,用vue-cli构建一个vue项目,用yarn link引用vant-cli demo项目. Home.vue代码如下:

在vue-cli项目中运行yarn build,发现打包好发现有js文件的大小有20...

mysql tutorial

install mysql on Ubuntu 18.04-adjusting-user-authentication-and-privileges)
Ubuntu远程连接MySQL(connection refused)解决方法

严格模式 && JS Module

严格模式ES6模块自动采用严格模式(‘use strict’), 严格模式下:

变量必须声明 Object/Value1a = 20; // > a=20


12'use strict';a = 20; // > a is not defined

不能delete 变量/Function
1...

vue lifecycle

new Vue();breforeCreate()observe data && init events
created()template options and render
beforeMount()create virtual DOM el and replace ‘el’ with it...

Reactive Programming introduction

link

webpack foundamentals

Problem with script LoadingHistory of ModulesThe birth of JS modules is the early period nodejs. we share package, run tools, linters, commands. They took th...

npm scripts

参考链接:

scripts
npm

lifecycle12345678910111213141516171819202122232425262728"scripts": { "prepublish": "", "prepare": "", "prepublishOnly": "", ...

css选择器

参考:

link

普通选择器
tagName
#id
.class-name
*
[attr]
[attr=value]
[attr~=value]
[attr
=value]
[attr^=value]
[attr$=value]
[attr*=value]

组合选择
A + B ex: h2...

闭包


12345678910111213var length = 10;function fn(n){}{ console.log(this.length);}var obj = { length: 5, method: function( fn )...