2011-10-11 27 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的太 –