摘要:
vue的数据双向绑定的小例子: 。html index.js observer.js watcher.js 原理:当new vue后,将data属性直接给vm添加上,将属性的每一级进行set get 当set新值时通知notify函数。执行 new watcher ,强制执行data的get 使wa 阅读全文
摘要:
Object的属性 阅读全文
摘要:
Object.prototype.toString.call(asddfff) //报错asddfff没被定义Object.prototype.toString.call(undefined) //"[object Undefined]"Object.prototype.toString.call( 阅读全文
摘要:
一,安装python 官网下载地址:https://www.python.org/downloads/windows/ 我下载的是最新的: Download Windows x86 web-based installer 自定义安装到:F:\software\python3.7.2 配置环境变量,随 阅读全文
摘要:
浏览器的同源策略是浏览器上为安全性考虑实施的非常重要的安全策略。从一个域上加载的脚本不允许访问另外一个域的文档属性。举个例子:比如一个恶意网站的页面通过iframe嵌入了银行的登录页面(二者不同源),如果没有同源限制,恶意网页上的javascript脚本就可以在用户登录银行的时候获取用户名和密码。何 阅读全文
摘要:
Vue-router 中hash模式和history模式的关系在vue的路由配置中有mode选项 最直观的区别就是在url中 hash 带了一个很丑的 # 而history是没有#的mode:"hash"; mode:"history"; hash模式和history模式的不同对于vue这类渐进式前 阅读全文
摘要:
测试阶段: <script src="https://github.com/Tencent/vConsole/blob/dev/dist/vconsole.min.js"></script> <script> var vConsole = new VConsole(); </script> 参考博客 阅读全文
摘要:
[Vue warn]: You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render fun 阅读全文