Javascript对象类节点
这是节点库 如何获得json/string格式的类模型和属性的表示 例如: 模块.导出:{ 属性:{Javascript对象类节点,javascript,object,attributes,Javascript,Object,Attributes,这是节点库 如何获得json/string格式的类模型和属性的表示 例如: 模块.导出:{ 属性:{ user_num: {type: "integer", primaryKey: true}, contact_id: {type: "integer"}, username: {type: "string", size: 15}, pass: {type: "string", size: 20}, 。。。 } 我需要给出这个文件的路径作为参数,结果是一个属性字符
user_num: {type: "integer", primaryKey: true},
contact_id: {type: "integer"},
username: {type: "string", size: 15},
pass: {type: "string", size: 20},
。。。
}
我需要给出这个文件的路径作为参数,结果是一个属性字符串
谢谢你你的问题对我来说不是很清楚:假设你说的是猫鼬模型(但只是猜测),也许你可以看看它是否有帮助。那么你只是想用JSON序列化你的对象?非常感谢这就是我要找的