在 MDC 找到了这个,但是如果我想将私有变量添加到
var dataset = {
    tables:{
        customers:{
            cols:[ /*here*/ ],
            rows:[ /*here*/ ]
        },
        orders:{
            cols:[ /*here*/ ],
            rows:[ /*here*/ ]
        }
    },
    relations:{
        0:{
            parent:'customers', 
            child:'orders', 
            keyparent:'custid', 
            keychild:'orderid',
            onetomany:true
        }
    }
}
我在 Javascript 中理解 OOP 的方式是,如果存在这样的项目,我可以访问 dataset.tables.customers.cols[0]。
但是如果我想在客户中放置一个私有变量,那会是什么样子?
添加var index = 0;会导致运行时错误。