zoukankan      html  css  js  c++  java
  • JS 信息提示弹框封装

    // 功能提示弹框
    function tipsBox ( option ) {
    	var html = '';
    
    	if ( option.type == 'success' ) {
    		html += '<div class="message-box-body" data-type="success">'+ option.message +'</div>';
    	}
    	else if ( option.type == 'error' ) {
    		html += '<div class="message-box-body" data-type="error">';
    		html += '<span>' + option.message + '</span>';
    		html += '</div>';
    	}
    	
    	$(".common-dialog-box").empty().append(html);
    	$(".common-dialog-box").addClass('show');
    
    	// 延迟取消
    	setTimeout(function () {
    		$(".common-dialog-box").removeClass('show');
    	});
    
    }
    

      

  • 相关阅读:
    asp.net读取/导入project(mpp)文件
    hdu2103
    hdu2100(大数加)
    hdu1406
    hdu1249
    hdu1038
    hdu2565
    hdu1203
    zoj3501
    hdu2102
  • 原文地址:https://www.cnblogs.com/zsongs/p/6001258.html
Copyright © 2011-2022 走看看