Lanbery Blog

Hey, Welcome lanbery Technology blog.

Vue,Vuex,Webpack...

踏坑笔记

developer Vue 快速构建项目 Vue Router Vue 官方推荐的路由 坑 传参 this.$router.push 和this.$route.params 头一次用容易忽略 param 传参 用name:”” 不要用 path this.$router.push({ // path:`/domain/regi...

Git Tools Guide

Git Commands

Git 常用命令 Branch 类 Git branch 使用Git创建本地分支,并push到远程 git branch -a //查看所有分支 git status //查看状态 git checkout -b newBranch //新建本地分支 git branch -...

Web Extension API Study ☈

webRequest details Additional objects details documentUrl string. URL of the document in which the resource will be loaded. For example, if the web page at "https://example.com" contains an imag...

DNS over https Protocol

DoH

随着互联网快速发展,互联网用户对信息安全越来越重视,与此同时一些无耻之徒以某种名义盗取用户个人信息以及利用各种手段组织信息交流. 最近学习发现一篇通俗易懂的文章介绍如何利用Doh技术保护隐私 首先快速了解一下http protocol 当我们在浏览器访问一个URL地址时,通常是这样处理的 Browser 会创建一个get request to serv...

Javascript world components (三)

javascript library develop

lerna: 一种工具,针对 使用 git 和 npm 管理多软件包代码仓库的工作流程进行优化 es library 开发流程 lerna 将大型代码仓库分割成多个独立版本化的 软件包(package)对于代码共享来说非常有用。但是,如果某些更改 跨越了多个代码仓库的话将变得很 麻烦 并且难以跟踪,并且, 跨越多个代码仓库的测试将迅速变得非常复杂。 为了解...

Javascript world components (二)

Browser Chapter

Javascript world components Development Components json json :json is a fast CLI tool for working with JSON. It is a single-file node.js script with no external deps $ echo '{"foo":"ba...

Javascript world components (一)

Test Integration Chapter

Javascript world components tree-shaking tree-shaking 的功能就是把我们 JS 中无用的代码,给去掉,如果把打包工具通过入口文件,产生的依赖树比作 tree,tree-shaking 就是把依赖树中用不到的代码 shaking 掉。 3box-js This is a library which allows yo...

Front Web Development

Nodejs yarn vs npm

Yarn 用于优化npm 目标是解决上一节中描述的由于语义版本控制而导致的npm安装的不确定性问题 yarn command yarn init yarn add package yarn add global add package //全局安装 yarn install --force yarn remove [package] yarn cache clean ...

Browser Extension

crx

Getting Started Mind Mapping CRX Message Knowledge PPAPI (替代chrome-v42 之前的C++动态库调用方案) 网络请求控制 事件监听 通信机制 https 认证机制 Chrome Extension 优势,除应用在chrome 上外,还可以运行所有webkit内核的浏览器. C...

Golang Pkg Collection

Keep learning

Usage pkg in Go world net/http Go 语言里面提供了一个完善的 net/http 包,通过 http 包可以很方便的就搭建起来一个可以运行的 Web 服务。同时使用这个包能很简单地对 Web 的路由,静态文件,模版,cookie 等数据进行设置和操作。 http包建立Web服务 package main import ( "f...