我有對象結構,其中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){