English 中文(简体)
报表一
原标题:couchapp+evently: _init/data.js and $$(this)

http://couchapp.org/page/evently-do-it-your Self-ii-state” rel=“nofollow” http://couchapp.org/page/evently-do-it-your Self-ii-state 两点混淆不清(我不了解答案为何):

$ cat data.js
function(e) {
  $$(this).toppings = [];
}
  • What s the "e" parameter in data.js?
  • What exactly does the $$(this) function return, and how do I find out more about it? Is it solely user-definable state, or are there methods or special state parameters that I need to know about?
问题回答




相关问题
Getting UUIDs in a CouchApp with active vhost

I am looking for the right way for loading new UUIDs or accessing the _session object in a couchapp behind a vhost. I have written a couchapp and everything workes well with the normal but ugly urls. ...

CouchApp vs Node.js

On the frontend Im using Sproutcore. The question is how the backend is going to look like. Solutions: CouchApp Node.js between Sproutcore and CouchDB Could CouchApp really replace Node.js on the ...

How to TDD for CouchDB with CouchApp?

Recently I ve discovered CouchDB. I want to use CouchApp to build a flash games site. It looks like a perfect fit cause this kind of a site is totally document based with a bit of binary attachments. ...

Timeout in a Couchapp list when using mustache

I have a simple list view in which I (try to) use mutache to render the output of a list containing 5 results. function(head, req) { var row, mustache = require("vendor/couchapp/lib/mustache....

deploy application on couchdb

I would like to deploy my application on couchdb. Have few queries regarding the same. 1) Is couchapp the only way to install applications on couchdb? 2) Can we deploy only javascript/HTML in ...

how to get jquery.couch.app.js to work with IE8

I have tested this on Windows XP SP3 in IE7 and IE8 ( in all compatibility modes ) and Windows 7 Ultimate in IE8 (in all compatiblity modes) and it fails the same way on both. I am running the latest ...

热门标签