使用显示模块模式时,函数和属性的正确起始案例是什么?我在这里显示了小写的函数和大写的属性,但这感觉不正确。
return {
getRecords: getRecords, // this is a function
CurrentTitle: getCurrentRecord().title // this is a title
};
使用显示模块模式时,函数和属性的正确起始案例是什么?我在这里显示了小写的函数和大写的属性,但这感觉不正确。
return {
getRecords: getRecords, // this is a function
CurrentTitle: getCurrentRecord().title // this is a title
};