我的JS從調用另一個方法JS
var Customer : function()
{
this.ShipProduct : function()
{
//Logic for shipping product. If shipping successful, notify user
//Here I am trying to call Notify
//this.Notify(); // does not work
}
this.Notify = function()
{
//Logic for notify
}
}
下面的代碼片段我怎麼會叫從ShipProduct通知?
您可以嘗試通過移動ShipProduct方法上面的方法通知嗎? – InSane 2010-08-20 22:31:08
@In Sane - 不,這不起作用 – Nick 2010-08-23 14:15:19