Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

完善错误提示 #41

Closed
PengXing opened this issue Jul 11, 2018 · 1 comment
Closed

完善错误提示 #41

PengXing opened this issue Jul 11, 2018 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@PengXing
Copy link
Contributor

  1. on 事件执行过程中如果发生错误,应该给予提示,应提示开发者哪句话错了,以及错在哪里,如下面代码,点击毫无反应,也没有错误或者警告日志
<mip-data>
  <script type="application/json">
  {
    "text": "aaaa"
  }
  </script>
</mip-data>
<span m-text="text"></span>
<button on="tap:MIP.setData({text: 'btn clicked'})">button</button>
  1. m-bind/m-text 绑定不存在的变量时无效,也不提示
<span m-text="aaa"></span>
<button on="tap:MIP.setData({aaa:'btn_clicked'})">button</button>
@PengXing PengXing added the enhancement New feature or request label Jul 11, 2018
@ccksfh
Copy link
Contributor

ccksfh commented Jul 19, 2018

第2点基于目前的机制会有困难,因为 mip-data 组件是允许多个的,而且还有全局共享数据的可能,一次 compile 结果不代表最终结果

@zoumiaojiang zoumiaojiang self-assigned this Jul 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants