You should get into the habit of namespacing your JavaScript-files:
//Count.js:
var Count = {
add: function add() {
},
[additional methods in the Count object]
};
// PriceImpl.js
var Price = {
add: function add () {
},
[additional methods for the Price implementation]
};
Then call methods like Namespace.method
, i.e. Price.add()
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…