纸板小程序:订单/送货单:列表与详情功能
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
function getFirstCharacter(str, showFullIndex) {
|
||||
var res = str.toString();
|
||||
if (showFullIndex) {
|
||||
return res;
|
||||
}
|
||||
return res.substring(0, 1);
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
getFirstCharacter: getFirstCharacter,
|
||||
};
|
||||
Reference in New Issue
Block a user