javascript 如何使用 JAlerts
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4104377/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to use JAlerts
提问by nath
Hi I am new to jQuery. Can some body tell me how to use JAlert in a project. Please help. thnx
嗨,我是 jQuery 的新手。有人可以告诉我如何在项目中使用 JAlert。请帮忙。谢谢
ps
ps
Hi I have used it in a netbeans project. But it doesnot work
嗨,我在一个 netbeans 项目中使用过它。但它不起作用
<html>
<head>
<script type="text/javascript" src="jquery.js" ></script>
<script type="text/javascript" src="jquery.jalert.js" ></script>
<link href="jalert.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
<script>
function hello()
{
jAlert('Price should be blocks of 10 cents', 'FAILED', );
}
</script>
</head>
<body>
<form name="accounts" method="POST" action="test.jsp">
<input type="button" name="clientAccount" value="click" onclick=hello()>
</form>
</body>
</html>
can sombody tell me what the problem
有人能告诉我是什么问题吗
回答by Halil ?zgür
Go to the jAlert demopage and view the source code.
转到jAlert 演示页面并查看源代码。
回答by Flo Edelmann
see http://www.smooka.com/blog/2009/02/22/jalert-jquery-alert-box-plugin/
见http://www.smooka.com/blog/2009/02/22/jalert-jquery-alert-box-plugin/
But please first search for jalertin Google, if you can't find something, you can ask a question here.
但是请先在Google中搜索jalert,如果找不到,可以在这里提问。

