2012-11-05 29 views
0
if ((Modal.confirm && Modal.confirm('some text here')) || (!Modal.confirm && window.confirm('same text here'))) navigateToUrl('some link here','DETAIL','submit'); 

我有上面的代碼onClick條件的一個按鈕。只是想知道術語modal.confirm和window.confirm是什麼意思?另外,如何在彈出窗口中點擊「確定」,將我導向該鏈接,因爲在上述條件中沒有提及「確定」?salesforce中的modal.confirm?

感謝 山姆

回答