创建一个构造函数对象
// 创建一个 构造函数 对象
export const CreatePartnersObj = function (object={}) {
this.InvestorMemberName = ""
this.InvestorMemberSharesNum = ""
this.InvestorMemberSharesScale = ""
this.InvestorMemberSharesType = ""
for (const key in object) {
if (Object.hasOwnProperty.call(object, key)) {
const element = object[key];
this[key]= element
}
}
}
构造函数还可以传值