![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JSP
未具名
这个作者很懒,什么都没留下…
展开
-
如何给button加超链
这是一个按钮补充1.如果让本页转向新的页面则用: 2.如果需要打开一个新的页面进行转向,则用:原创 2016-04-20 19:10:46 · 3227 阅读 · 0 评论 -
超链接a提交表单
.....a href='javascript:document.form1.submit();'>这是一个超链接href一般引用的都是URL,或是绝对地址,或是相对地址,这里引用的是javascript,从document中取出form,然后调用form的submit()方法eg.绝对链接:W3School相对链接:W3School原创 2016-05-07 21:02:22 · 971 阅读 · 0 评论 -
防止普通用户直接登录管理员页面的几种自动跳转方法
1.最好用的方法<% User user = (User) session.getAttribute("user"); if (user == null || user.getAuthority() == 0) { response.sendRedirect("http://www.baidu.com");%>对很简单,只要user为null或者我们得到的用户的权限为0,即为普通用户,那原创 2016-05-20 03:51:44 · 3948 阅读 · 0 评论 -
jQuery中获取radio button中被选中的value值
线上需求线下需求javascript:$("[name='type']").val($('input:radio[name="radio"]:checked').val());原创 2016-06-02 16:57:52 · 1233 阅读 · 0 评论 -
ajax异步加载中遇到的onclick无法传递中文参数问题
$.each(data, function() { if(null==this.CCommenterNickname||''==this.CCommenterNickname) this.CCommenterNickname="神秘游客"; if(null==this.CCommenterAvatar||''==this.CCommenterAvatar) th原创 2017-09-27 17:01:12 · 3499 阅读 · 0 评论 -
spark.end()
box.innerText='MD5 hash:'+spark.end(); console.info("computed hash", spark.end());两行代码:第一行页面显示了正确的md5值:如c46c2ea86afa25c345293454e867356d但console中值为d41d8cd98f00b204e9800998ecf8427e原创 2017-11-28 01:05:24 · 917 阅读 · 0 评论 -
Unable to compile class for JSP: An error occurred at line: [16] in the generated java file:
springboot页面报错Unable to compile class for JSP,即不能编译JSPWhitelabel Error PageThis application has no explicit mapping for /error, so you are seeing this as a fallback.Thu Jul 26 15:44:28 CST 2018...原创 2018-07-26 15:57:17 · 1512 阅读 · 0 评论