我有对象结构,其中utils和utils.not采取相同的原型(与exist方法)。我简化它更清楚: var negative = true;
if(negative){
//when negative===true, I want to run exist() through not object
tests.utils.not.exist();
} else {
我主要负责整个转换资金的大对象。 在这个对象内我有4种方法。 addTaxAndShowBack()是我的“主要”方法,它以某种回调地狱的形式执行其他链接。 addTaxAndShowBack: function(priceField,selectedCurrency) {
var that = this;
var convertedToUSD = this.convertTo
我的工作类现在 但有调用方法(这里的链的问题是代码 class Point{
public:
int x;
int y;
Point(int i , int j);
Point incrementX();
Point incrementY();
void print();
};
Point::Point(int i, int j){