Skip to main content

良好编码习惯

消除强耦合

使用变量替换函数方法调用时的字符串

js
1
2
3
4
5
6
7
8
9
10
//文件1
const types = {
type1:Symbol(),
type2:Symbol(),
};
//文件2