Javascript 对象 Class 节点

Javascript object Class node

这是节点库

如何获得 class 模型的表示,json/ 字符串格式的属性

例如: module.exports:{ 属性:{

    user_num: {type: "integer", primaryKey: true},
    contact_id: {type: "integer"},
    username: {type: "string", size: 15},
    pass: {type: "string", size: 20},

... } 我需要把这个文件的路径作为参数,结果是一个属性字符串

谢谢

你的问题在我看来不是很清楚:假设你在谈论猫鼬模型(但只是猜测)也许你可以看看here 如果有帮助的话。