动态数据绑定NodeJS

时间:2015-12-01 20:52:53

标签: node.js knockout.js

我有一个nodeJS应用程序,我有一个javascript对象数组。在我的玉页上,我吐出来但现在我想添加一个过滤器输入,当我输入它时将开始过滤传入的模型。我可以用Node本身做这个或者我应该实现像Knockout JS这样的东西来创建可观察的数组?如果是这样,有人有一个指向教程的链接,以便将KO用于NodeJS吗?

JS数组对象

var sections = [
    {
        title: 'Verity Monitoring',
        links: [
            {
                name: 'Verity ',
                link: '#'
            },
            {
                name: 'Hits',
                link: '#'
            },
            {
                name: 'Verity Hits Line Chart with Ratios',
                link: '#'
            },
            {
                name: 'Verity Cache Performance',
                link: '#'
            },
            {
                name: 'Verity Usage for a Date ',
                link: '#'
            },
        ]
    },
    {
        title: 'Solr Monitoring',
        links: [
            {
                name: 'Solr Requests',
                link: '#'
            },
            {
                name: 'Solr Errors Stores',
                link: '#'
            },
            {
                name: 'Solr Timeouts',
                link: '#'
            },
            {
                name: 'Solr Average Response Time',
                link: '#'
            }
        ]
    }
];

exports.sections = sections;

0 个答案:

没有答案