原创 span的值根據radio的選中狀態而變化

<script> $(function(){ $(".myradio").change(function(){ var value=$("input[name='s']:checked").val(); document.getElem

原创 sql根據查出值的不同輸出html語句

select Concat('&lt;a style=color:#4294E3; href=javascript:show(\'', id, '\') &gt;', id, '&lt;a &gt;') id1 from t_h

原创 jsp中限制checkbox選中的個數_勾選後臺傳的值_排列

jsp中限制checkBox選中的個數: <script language="javascript"> function chkbox(elm) {var obj=document.getElementsByName("cbox");

原创 響應iframe請求使用jsp局部替換頁面

總頁面: <script> function replace(){ var test = $(".test").val(); $("#myiframe").attr("src","part.htm?test="+test

原创 SpringBoot+RESTful異常

1. java.io.NotSerializableException 實體類實現Serializable接口 public class Student implements Serializable { private int

原创 intellij上WebService天氣調用

1、配置Intellij的WebService項目: https://blog.csdn.net/z69183787/article/details/53506027?locationNum=1&fps=1 2. 生成客戶端代碼:

原创 Randoop使用

下載:https://randoop.github.io/randoop/ 打開github,搜索randoop,點release獲得zip文件,解壓縮,將測試類放到randoop的jar所在目錄 編譯測試類 錯誤信息 Canno

原创 Session、Application

修改application屬性:  ServletContext application = request.getServletContext(); application.setAttribute("blog", blog); 修改

原创 EasyUI備忘

$.messager.alert()一閃而過解決 $.messager.alert("系統提示", "添加成功!",'info',function() { window.location.

原创 session

修改session某屬性值: request.getSession().setAttribute("currentUser", blogger); 獲取session某屬性: request.getSession().getAttri

原创 MySQL備忘

查詢的count()不計算重複條目 SELECT  count(distinct(t_feeling.id)) FROM t_feeling,t_friend         where (feeling_user=t_friend.fr

原创 MyBatis備忘

MyBatis往MySQL中插入一條記錄後,需返回該條記錄的自增主鍵值 <insert id="addBlog" parameterType="Blog" keyProperty="id" useGeneratedKeys="true"

原创 MySQL Error

Error Code : 1060 Duplicate column name 'xxx' 有重複字段 Error Code: 1248. Every derived table must have its own alias 每個派生出

原创 斑空間

【新技術點】 shiro 密碼加密 lucene全文索引 jquery.easyui.min.js前端

原创 JavaScript中function相關

對象不支持“form”屬性或方法: $("#fm").form(。。。)使用的是jquery-easyui-1.3.3/jquery.easyui.min.js,而不是jquery-1.11.2.min.js  “$”未定義: $未定義