2011-10-11 23 views
1

我如何在knockoutjs中從sqlite表中獲取其數據的模型?KnockoutJS模型集sqlite表

// This is a simple *viewmodel* - JavaScript that defines the data and behavior of your UI 
var viewModel = { 
    firstName: "Bert", 
    lastName: "Bertington" 

}; 

//viewModel->settable('table_name'); for instance. 

// Activates knockout.js 
ko.applyBindings(viewModel); 

回答

1

簽出entityspaces.js,您可以觀看視頻,它支持完整的層次結構數據模型,甚至可以生成您的WCF JSON服務,它也支持REST API。

一個JavaScript ORM(數據訪問)的框架,採用淘汰賽

https://github.com/EntitySpaces/entityspaces.js#readme

+0

哦,它支持SQLite的太 –