使用javascript的消息框图标 [英] Message box icon using javascript

查看:94
本文介绍了使用javascript的消息框图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨..,

如何在JavaScript中为剃刀视图引擎显示消息框的错误图标

这是我的JavaScript代码,我想要错误图标

 $( 。dialog)。对话框({
autoOpen: true
modal: true
title: 信息
宽度: 200
身高: 200
draggable: false
可调整大小: false
closeOnEscape: false
buttons :{
' Ok' function (){
$( this )。dialog(' 关闭);
}
}

});



任何人都可以帮我解决这个问题

解决方案

。dialog)。dialog({
autoOpen: true
模态: true
title: 信息
宽度: 200
height: 200
可拖动: false
可调整大小: false
closeOnEscape: false
按钮:{
' Ok' function (){


)。dialog(' close');
}
}

});



任何人都可以帮我解决这个问题


hi ..

您可以在对话框中添加错误图标



例如:

 <   div     class   = 对话框 >  
//这里你可以在dialog.css(样式)中添加/显示错误图标

//添加错误图标
< / div >


Hi..,
How to Show error icon for message box in JavaScript for razor view engine
This is my JavaScript code for this I want error icon

$(".dialog").dialog({
           autoOpen: true,
           modal: true,
           title: "Information",
           width: 200,
           height: 200,
           draggable: false,
           resizable: false,
           closeOnEscape: false,
           buttons: {
               'Ok': function () {
                   $(this).dialog('close');
               }
           }

       });


can any one help me to solve this problem

解决方案

(".dialog").dialog({ autoOpen: true, modal: true, title: "Information", width: 200, height: 200, draggable: false, resizable: false, closeOnEscape: false, buttons: { 'Ok': function () {


(this).dialog('close'); } } });


can any one help me to solve this problem


hi..
You can add the Error Icon in Your dialog holder

For Example:

<div class="dialog">
   //Here You can Add/show Error icon 
      or
   //add error icon in your dialog.css(style)
</div>


这篇关于使用javascript的消息框图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆