-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",
});
}
你正在談論哪種技術設置假的呢? – vijayP
我們需要看到的代碼在'showErrorMessage()'函數有任何幫助。目前這個問題完全無法回答。 –
請添加上下文,以便問題可以理解。 –