36

「从源码中学习」Vue源码中的JS骚操作

 5 years ago
source link: https://juejin.im/post/5c73554cf265da2de33f2a32
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
本文不准备解析Vue源码的运行原理,仅单纯探寻vue中工具函数中那些值得学习的骚操作 1. 当前环境的一系列判断 1.1inBrowser: 检测当前宿主环境是否是浏览器 // 通过判断 `window` 对象是否存在即可 export const inBr

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK