问题描述
Hai如何在JSP Java编程中编写angulartoaster的代码,IAM尝试将会话用户名打印到Angle Toastr中,但是IAM获取用户的值,而不是在Angle Toastr上打印用户名,并且它也不是打开角度烤面包机弹出窗口。这是我的代码,请帮助我
<link href="assets/libs/toastr/toastr.min.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
toastr.options = {
"closeButton": false,"debug": false,"newestOnTop": false,"progressBar": false,"positionClass": "toast-top-right","preventDuplicates": false,"onclick": null,"showDuration": "300","hideDuration": "1000","timeOut": "5000","extendedTimeOut": "1000","showEasing": "swing","hideEasing": "linear","showMethod": "fadeIn","hideMethod": "fadeOut"
};
var Msg ='<%=session.getAttribute("UserName")%>';
if (Msg !== "null")
{
function alertName()
{
toastr.options.positionClass = 'toast-bottom-right';
toastr.success("Welcome!"+Msg);
//alert("Welcome");
}
}
</script>
<script type="text/javascript"> window.onload = alertName; </script>```
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)