Time of Update: 2018-12-03
以下方法是通用的,只要把datagrid定義為全域的即可,其他部分的代碼不用進行修改!可以把以下代碼放入到一個單獨的js檔案,然後再需要的頁面引入即可!$(function(){try{$(".datagrid-body").scroll(function(){ var sheight = $(this)[0].scrollHeight; var top=$(this)[0].scrollTop; var height=$(this).height();
Time of Update: 2018-12-03
C:\Windows\System32\cmd 命令、 aspnet_Regiis.exe (顯示當前的 iis 的版本。 、 、) aspnet_Regiis.exe -i(重新設定 IIS 的伺服器) aspnet_regiis.exe - pef "配置節" "實體路徑" 加密 (配置節connectionStrings 實體路徑 E:\xuexi\WebSite11)具體代碼: aspnet_regiis.exe -pef
Time of Update: 2018-12-03
利用jquery 對easyui datagrid進行了一個更好的擴充js代碼://對jquery進行擴充,調用的時候只需要需要調用$.pan.load(options)即可,傳入對象參數(function($) {$.extend( {pan:{load : function(options) {//自動化佈建屬性for(var item in
Time of Update: 2018-12-03
var throldHold = 20; //兩次scroll事件觸發之間最小的事件間隔window.onscroll = function(){ if(arguments.callee.timer) clearTimeout(arguments.callee.timer); arguments.callee.timer = setTimeout(function(){ var tops =0; if(document.body.scrollTop){
Time of Update: 2018-12-03
今天在Tomcat中做檔案下載,發現如果檔案名稱是中文名無法下載,而英文檔案名稱的是沒有問題的。想想可能跟編碼有關係,在conf/server.xml設定檔發現在裡面可以改其編碼方式。<Connector port="8080" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="100"
Time of Update: 2018-12-03
public void ProcessRequest(HttpContext context) { context.Request.ContentEncoding = Encoding.GetEncoding("gb2312"); context.Response.ContentEncoding = Encoding.GetEncoding("gb2312"); context.Response.ContentType =
Time of Update: 2018-12-03
分頁使用$.fn.pagination.defaults重載預設值。依賴關係連結按鈕使用指南<div id="pp" style="background:#efefef;border:1px solid #ccc;"></div> $('#pp').pagination({ total:2000, pageSize:10 }); 屬性名稱類型描述預設值total(總數)number(數字)總記錄數,當建立分頁時必須設定。1pageSize(每頁記
Time of Update: 2018-12-03
import java.util.Scanner;public class maopao {public static void main(String []arg){ Scanner input=new Scanner(System.in); System.out.print("輸入 你要排序的數個數"); int num=input.nextInt(); // 要對幾個數進行排序、 、 int [] shu=new int[num];
Time of Update: 2018-12-03
需求是這樣的,需要查詢某幾個表的資料,然後插入到另外一個表。一看到需求,很多人都會用hibernate去把這些資料都查詢出來,然後放到list中,然後再用for迴圈之類的進行遍曆,一條一條的取出資料對對象進行賦值,然後在調用dao層的save 方法進行儲存對象。hibernate儲存一條資料是在35毫秒左右,咱們來計算下時間:35*110000=3850000
Time of Update: 2018-12-03
import java.io.IOException;import javax.xml.parsers.DocumentBuilder;import javax.xml.parsers.DocumentBuilderFactory;import javax.xml.parsers.ParserConfigurationException;import org.w3c.dom.Document;import org.w3c.dom.Element;import org.w3c.dom.Node;i
Time of Update: 2018-12-03
Internet Explorer 使用 event.keyCode 取回被按下的字元,而 Netscape/Firefox/Opera 使用 event.which。<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default5.aspx.cs" Inherits="Default5" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Time of Update: 2018-12-03
就是 在一張 畫板上花上 另一個 映像、 、<%@ WebHandler Language="C#" Class="Handler" %>using System;using System.Web;using System.Drawing;using System.Text;using System.IO;using System.Drawing.Imaging;using System.Web.SessionState;public class Handler :
Time of Update: 2018-12-03
1、拆中做法、 、 判斷靜態檔案是否存在、不存在就建立一個(提前編輯好一個靜態頁模板 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>
Time of Update: 2018-12-03
private void GetExcel() { UserLogin ul = (UserLogin)Session["UserInfo"]; DataSet ds=new DataSet(); if (InfoMainClass.Enabled) { ds = new ChildrenManager().GetChildrenList(KeyWords.Text, Convert.ToInt32(
Time of Update: 2018-12-03
package filter;import java.io.IOException;import javax.servlet.Filter;import javax.servlet.FilterChain;import javax.servlet.FilterConfig;import javax.servlet.ServletException;import javax.servlet.ServletRequest;import
Time of Update: 2018-12-03
在Web 上添加web引用-->http://www.webxml.com.cn/WebServices/WeatherWebService.asmx-->GO-->添加引用 、、、建立一個 Default6頁面:cs:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using
Time of Update: 2018-12-03
建立 一個 表單 檔案名稱為 Default4.aspx.csusing System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;public partial class Default4 : System.Web.UI.Page{ protected void
Time of Update: 2018-12-03
頁面:<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default7.aspx.cs" Inherits="Default7" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html
Time of Update: 2018-12-03
一、號碼構成:1 地址碼 (身份證前六位)表示編碼對象常住戶口所在縣(市、鎮、區)的行政區劃代碼。2 生日期碼 (身份證第七位到第十四位)表示編碼對象出生的年、月、日,其中年份用四位元字表示,年、月、日之間不用分隔字元。例如:1981年05月11日就用19810511表示。3 順序碼 (身份證第十五位到十七位)地址碼所標識的地區範圍內,對同年、月、日出生的人員編定的順序號。其中第十七位奇數分給男性,偶數分給女性。4 校正碼 (身份證最後一位)是根據前面十七位元字碼,按照ISO 7064:
Time of Update: 2018-12-03
常用JDBC串連資料庫方法總結如下:一、DB2Class.forName("Com.ibm.db2.jdbc.net.DB2Driver");String url="jdbc:db2://dburl:port/DBname"cn = DriverManager.getConnection( url, userName, password );二、Microsoft SQLServer(microsoft)Class.forName(