原创 js封裝java對象爲json,

前臺js代碼     var obj =   {rtd_id:trid,rtd_appellation:s1,rtd_name:s2,rtd_age:s3,rtd_live:s4,rtd_national:s5,rtd_identify

原创 jquery實現鼠標懸停單元格變色

<style>.hover{ background-color: #ccc;cursor:pointer;}.selected{background-color:gray;color:#666;curso

原创 mysql 查找表中不包含另一張表的數據的記錄

tabletouser表 submit 表 查詢submit表中的記錄,只需要年份(time)和表名(tab_id) ,但是如果在tabletouser表中存在相同的年份(year)和表(tabletouser)則不能從submit中

原创 json日期格式問題

問題代碼 Gson gson = new Gson(); response.getWriter().print(URLEncoder.encode(gson.toJson(list),"utf-8")); 正確代碼:   Gson g

原创 數據庫主鍵設計

一個表中有  user_id   table_id ,time 三個字段,三個字段標誌一個唯一的記錄。  數據庫表         id user_id (int)              table_id (int)      

原创 不規則的字符串中截取數字

import java.util.Arrays; public class TrimString { public static int[] getNumber(String str){ //定義字符串中有3個數字,也可以更多 int

原创 mysql 時間查詢

SELECT * FROM tzb_submit WHERE `time` BETWEEN "2014-04-10 12-12-12" AND "2014-06-04 21-21-21"