【问题标题】:couchapp+evently: _init/data.js and $$(this)couchapp+evently: _init/data.js 和 $$(this)
【发布时间】:2012-01-13 17:55:30
【问题描述】:

我正在阅读 couchapp 教程 http://couchapp.org/page/evently-do-it-yourself-ii-state 并在两点上感到困惑(我不喜欢在不知道为什么会这样的情况下被告知答案):

$ cat data.js
function(e) {
  $$(this).toppings = [];
}
  • data.js 中的“e”参数是什么?
  • $$(this) 函数究竟返回了什么,我如何找到更多关于它的信息?它是完全由用户定义的状态,还是有我需要了解的方法或特殊状态参数?

【问题讨论】:

    标签: couchapp evently


    【解决方案1】:

    您可以在this post from wycats 中找到有关$$() 的更多信息,据报道in the sources

    我不再使用Evently,所以我不记得e参数是什么了。但是,您可以使用 Firebug 轻松检查它。

    【讨论】:

      猜你喜欢
      • 2011-09-30
      • 2015-10-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-06-28
      相关资源
      最近更新 更多