2016-01-08 28 views
-2

我顯示像這樣我的錯誤信息:集()顯示

showErrorMessage("Description and Measure fields cant be empty"); 

的問題是它沒有停留足夠長的時間供人閱讀的消息。那麼我該如何讓它持續更久呢?

這裏的功能,即在用它`

function addGoal() { 

    var description = $('.description').val(); 
    var measure = $('.measure').val(); 
if((description!="")&&(measure!="")){ 
//do some thing 
}else { 
showErrorMessage("Description and Measure fields cant be empty"); 
} 

`

抱歉,這裏是我的功能

function showErrorMessage(message){ 
     noty({ 
      text: message, 
      type: "error", 
      theme: "gmailTheme", 
      layout: "topCenter", 
      }); 
    } 
+0

你正在談論哪種技術設置假的呢? – vijayP

+0

我們需要看到的代碼在'showErrorMessage()'函數有任何幫助。目前這個問題完全無法回答。 –

+0

請添加上下文,以便問題可以理解。 –

回答

0

超時:假的,//延遲關閉事件。對於粘性通知