js在專案中的集錦
阿新 • • 發佈:2020-12-28
技術標籤:jsjavascriptwebjsjqueryhtml
next(),prev(),prent(),children(),nextAll()
$(this).next() 當前元素的下一個元素
$(this).prent() 當前元素的父元素
js當個按鈕修改
a標籤傳值修改
打分 儲存在controller層
用這個程式碼,返回原頁面並修改,重新整理
PrintWriter out=response.getWriter();
//out.print("<script>alert('儲存成功');javascript:history.go(-1);location.reload();</script>");
out.write("<script language=javascript>self.location=document.referrer;</script>");