vsc 报错 decorators 和 bind this
2017-09-26 00:00
417 查看
最近用上了 vsc,被下面的问题烦了很久。
1 其中 decorators 报错信息是
跟了下,最终是要工程下配置好 tsconfig.json ,具体见 http://www.jianshu.com/p/e62b...
2 bind this 的报错始终没有找到解决方案, tsconfig.json 中并没有相应的配置。 个人猜测 ts 本身没支持的原因。
最后,既然如此,就不采用 vsc 默认的校验了。
- 1
cmd + ,
去到 User Settings 下,把默认的检测关掉"javascript.validate.enable": false
- 2
cmd + shift + x
去到 Extensions,搜索 eslint 安装,使用 eslint 来做代码检测。(具体eslint就不介绍了)
相关文章推荐
- react native 代参bind this 的两种方式
- javascript使用bind()函数绑定this
- 轻松搞定this绑定方法 call apply bind
- Effective JavaScript Item 25 使用bind方法来得到一个固定了this指向的方法
- this(他喵的)到底是什么 — 理解 JavaScript 中的 this、call、apply 和 bind
- JavaScript的this,call(),apply(),bind()
- JavaScript的this,call(),apply(),bind() ---(转载)
- 分享一道关于闭包、bind和this的面试题
- Javascript中的this,call,apply,bind!
- react 的 bind this 几种方法
- js 事件冒泡 事件代理 事件捕捉 this指针 bind this
- React事件处理函数中绑定this的bind()函数
- 改变this指向(call、apply、bind)
- jQuery——何时添加bind(this)
- this指针使用及call(),apply()及bind()的使用
- js call() apply() bind() -改变this指向
- es6中为什么要bind(this)
- this bind apply call
- React-native 知识点-this.bind-返回键-React.cloneElement-控件显示隐藏-ScrollView
- this_scope_call_apply_bind_柯里化 详细分析