Time of Update: 2015-01-14
標籤:js防止多次提交在網頁中如果點擊完一個提交按鈕響應比較慢,使用者習慣性地會再次點擊該按鈕,此時我們的程式需要做一個判斷,來防止多次點擊提交。var ajaxRunningFlg = false;function add() {//防止多次點擊提交if (ajaxRunningFlg ) {return;} else {ajaxRunningFlg = true;}if (!inputCheck()) {ajaxRunningFlg =
Time of Update: 2015-01-14
標籤:apache tomcat安裝httpd 2.2版本#yum install httpd#cd /usr/lib64/httpd/modules/ #ls --需要apache已經裝載mod_proxy、mod_proxy_http、mod_proxy_ajp和proxy_balancer_module(實現Tomcat叢集時用到)等模組#cd /etc/httpd/conf/#vi proxy.confProxyVia
Time of Update: 2015-01-14
標籤:PHP表單提交頁面複選框的名稱後要加[],這樣在接收頁面才能得到正確的結果。表單提交後得到的是一個數組,然後通過訪問數組元素得到表單的具體vaule值。得到的checkbox1的值,預設有</br>換行。表單代碼:<form action="" method="post" name="asp"> 複選框1:<input type="checkbox"
Time of Update: 2015-01-14
標籤:一般給元素設定行內樣式,如<div id="div1"
Time of Update: 2015-01-14
標籤:@charset "utf-8";/* reset.css */html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p,blockquote, pre, a, abbr, acronym, address,big, cite, code, del, dfn, em, img, ins, kbd,q, s, samp, small, strike, strong, sub, sup,tt, var,
Time of Update: 2015-01-13
標籤:<?phpfunction my_function() {?>My function was called <!--就是這裡,為什麼前面要用?>和< ?php 把My function was called包圍起來,我看有好些代碼都這樣寫,是為什麼啊?--><?php}?><?phpmy_function()?> 去問了百度知道,得到的回覆是:你好,這樣寫話,可以在中間寫html啊<?php
Time of Update: 2015-01-13
標籤:處理數組資料//arrayvar
Time of Update: 2015-01-13
標籤:<script type="text/javascript">var UI = $.AMUI || {}; var $win = $(window); var doc = window.document;UI.support = {}; //根據不同瀏覽器注入不同事件 UI.support.transition = (function() { var transitionEnd = (function() {
Time of Update: 2015-01-13
標籤:fetch 抓取策略前提條件:必須是一個對象操作其關聯對象。 1、 根據一的一方載入多的一方,在一的一方集合中,有三個值:join/select/subselect 2、根據多的一方載入一的一方, 這種情況不考慮,因為關聯對象就一個資料,怎麼樣都可以join 串連 【一次性的把兩張表的資料全部查詢出來,只發出一條sql語句】 * 在頁面上既包括一的一方的資料,又包括多的一方的資料
Time of Update: 2015-01-13
標籤:<script type="text/javascript" charset="utf-8">function checkFile(filename){var flag = false;var arr = ["jpg","png","gif","bmp"];//取副檔名;var index = filename.indexOf(".");var ext = filename.substr(index+1);for(var i = 0; i<arr.length; i++)
Time of Update: 2015-01-13
標籤:轉自:http://www.iefans.net/liulanqi-shichuang-butong-yangshibiao/同一個網站,訪問它的瀏覽器可能會是不同的寬度,常見的有320px,480px,800px,1024px,1280px,1920px等,為不同大小的瀏覽器視窗提供不同的訪問效果,提高使用者的使用體驗,同時網站本身也可以為不同受眾提供不同的資源。下面提供兩種不同的瀏覽器視窗解決方案,這兩個方法都同樣適用於IE瀏覽器與其他非IE核心瀏覽器。一、通過W3C
Time of Update: 2015-01-13
標籤:PHP版另類EXCEL匯出,按模板匯出!特點: 不需要使用外掛程式!而且支援匯出非常好看的Excel!執行個體:步驟: 1、找到一個Excel,並將其另存新檔xml格式 2、修改xml格式檔案,中間將 資料部分 替換成PHP代碼 3、然後在匯出將 該xml 檔案用 include引入到系統內,可以得到xml的資料字串 // 執行檔案得到內容ob_start();include $file;return
Time of Update: 2015-01-13
標籤:QQ:讓index.php預設載入Home模組的Index控制器;而讓admin.php預設去載入Admin模組的Adminc控制器.AA:複製index.php命名為admin.php複製(建立)Admin模組的控制器如AdmincController增加admin.php內容: $_GET[‘m‘]="Admin";//指定啟動模組是Admin模組
Time of Update: 2015-01-13
標籤: * session的產生的方式 * 1、 sessionFactory.openSession 每次都會新建立一個session,只要新建立一個session,hibernate都會開啟應用程式和資料庫的串連,所以這種方式效率比較低 * 2、
Time of Update: 2015-01-13
標籤:學編程吧Servlet之HTTP狀態代碼發布了,歡迎通過xuebiancheng8.com來訪問HTTP 要求和 HTTP 響應訊息的格式是類似的,結構如下: 初始狀態行 + 斷行符號分行符號(斷行符號+換行)零個或多個標題列+斷行符號分行符號一個空白行,即斷行符號分行符號一個可選的訊息主體,比如檔案、查詢資料或查詢輸出例如,伺服器的回應標頭如下所示: [plain] view
Time of Update: 2015-01-13
標籤:胡博君 date時間集合 js中的date使用 var myDate = new Date();myDate.getYear(); //擷取當前年份(2位)myDate.getFullYear(); //擷取完整
Time of Update: 2015-01-13
標籤:raspberry
Time of Update: 2015-01-14
MyBatis 中無效的列類型 整形,mybatis整形在使用Mybatis時,不同的xml設定檔,有的會提示:無效的列類型: 通過觀察,如果是參數是Map類型或者Java Object類型,如果Map或者Object裡面的屬性類型不一致,如有些屬性是String類型,有些屬性是Integer類型,那麼MyBatis解析的時候,就會出現問題,類型無法識別。當然,如果傳入參數不是Map或者Java
Time of Update: 2015-01-14
[ACM] ZOJ 3844 Easy Task (類比+雜湊),zoj3844Easy TaskTime Limit: 2 Seconds Memory Limit: 65536 KBYou are given n integers. Your task is very easy. You should find the maximum integer a and the
Time of Update: 2015-01-14
A sequence of numbers(快速求冪),numbers求冪題目描述Xinlv wrote some sequences on the paper a long time ago, they might be arithmetic or geometric sequences. The numbers are not very clear now, and only the first three numbers of each sequence are recognizable.