Time of Update: 2018-12-05
錯誤資訊:SecurityError: Error #2148: SWF 檔案 D:/demo/test/index.swf 不能訪問本地資源 D:/demo/test/bin-debug/textLayout_4.0.0.10485.swf。只有僅限於檔案系統的 SWF 檔案和可信的本地 SWF 檔案可以訪問本地資源。 at flash.net::URLStream/load() at
Time of Update: 2018-12-05
<!-- IE6彈出瀏覽器升級提示及實現PNG圖片,背景(支援背景平鋪),PNG 24位透明問題 --><!--[if lte IE 6]><script type="text/javascript" src="${path }/common/js/ie6.js"></script><script type="text/javascript"
Time of Update: 2018-12-05
分享的jQuery彈出警告和提示框外掛程式轉載:http://bbs.html5cn.org/thread-2271-1-1.html對話方塊是一種非常友好的方法來進行人機交流,我們可以友好的提示使用者錯誤,警告,或者更多其它資訊。使用jQuery可以很方便的添加相關的對話方塊功能,使得程式不在冷冰冰,這篇文章我們將介紹了jQuery的對話方塊外掛程式。Appriseapprise是可以構建簡單快捷並且非常迷人的對話方塊功能。同時給你完全的樣式定義,內容,位置及其功能的自訂空間。這個外掛程式可以
Time of Update: 2018-12-05
使用 tomcat 時,相信大家都回遇到中文亂碼的問題,具體表現為通過表單取得的中文資料為亂碼。 一、初級解決方案 通過一番檢索後,許多人採用了如下辦法,首先對取得字串按照 iso8859-1 進行解碼轉換,然後再按照 gb2312 進行編碼,最後得到正確的內容。範例程式碼如下: http://xxx.do?ptname='我是中國人'String strPtname = request.getParameter("ptname");strPtname = new
Time of Update: 2018-12-05
JS代碼:prompt : function(msg, doc) {var topBody = null;if (typeof (doc) == "undefined") {topBody = $(document.body);} else {topBody = $(doc.body);}var promptDiv = $("<div class='promptDiv' style='display: none;'></div>");if (!(msg
Time of Update: 2018-12-05
export.js //傳入一個table的id,將table的全部內容匯出excel檔案 function AutomateExcel(objTable) { // Start Excel and get Application object. var oXL = new ActiveXObject("Excel.Application"); // Get a new workbook. var oWB =
Time of Update: 2018-12-05
在如下調用時出錯: <jsp:include page="fastpost.jsp"> <jsp:param name="returl" value="<%=Url.encode(****) %>" /> </jsp:include> 這裡,在 value 中只是使用了 URL 而已。 然後報錯: Attribute value Url.encode(****) is quoted with " which must be
Time of Update: 2018-12-05
/** * *全選、全消**/function checkAll(){var checkboxList = $('input[type="checkbox"]',document.forms[0]); var checkSels=document.getElementById("checkSels");checkboxList.each(function(i){ if(!$(this).attr('disabled')) this.checked=
Time of Update: 2018-12-05
用FLEX來開發應用難免不了要使用到Module,FLEX組件提供了ModuleLoader組件,該組件使用方式類似與swfLoader,但是通常僅僅使用該組件並不能滿足我們的需求,這時FLEX為我們提供了ModuleManager,可以實現動態載入不同的模組。 module分為兩種,一種是完整的,一種是關聯到主程式的,在建立Module時可以選擇module swf
Time of Update: 2018-12-05
The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: c:/Program Files/Java/jdk1.5.0_06/bin;.;C:/WINDOWS/system32;C:/WINDOWS;D:/study tools/Java/jdk1.5.0_06/bin/
Time of Update: 2018-12-05
1 Mybatis-There is no getter for property named 'tj' in 'class java.lang.String'SELECT .. ${tj} 在測試時報錯:There is no getter for property named 'tj' in 'class java.lang.String' 問題分析:Mybatis預設採用ONGL解析參數,所以會自動採用對象樹的形式取string.tj值,引起報錯。 解決方案: public
Time of Update: 2018-12-05
我的是ubuntu8.10,突然發現電腦無法關機重啟(點關機重啟時相當於點登出)。然後 我用如下命令:sudo shutdown -h now彈出報告:shutdown: timeout opening/writing control channel /dev/initctl init: timeout opening/writing control channel
Time of Update: 2018-12-05
Log4j.properties代碼### 設定Logger輸出層級和輸出目的地 ###log4j.rootLogger=debug,stdout,logfile### 把日誌輸出到控制台 ###
Time of Update: 2018-12-05
import org.apache.log4j.*;import org.apache.log4j.xml.DOMConfigurator;import java.io.*;public class LogUtil { //private static BaseLogUtil objLog = new BaseLogUtil(); private static final String LOGCONFIG = "log4j.properties"; private static
Time of Update: 2018-12-05
看了這篇名為《開發工程師之路》的文章,頗有感慨。特寫此文與所有java愛好者共勉。對於我個人來說,從事技術工作已快有兩年了,有時問問自己,這些年來到底真正掌握的技術有多少?自己天天都做了些什嗎?如今有什麼值得回味的呢?一想到這些問題,就不免身冒冷汗。仔細一想,這兩年來,每天除了工作就是學習(當然周末有例外),新技術,新工具,一個個的學,一個個的用。到如今呢,說學了什嗎?能列出來的不就是java相關的東西嗎?技術方面:Servlet,JSP(TagLib),EJB,JNDI,JDBC,JMail,
Time of Update: 2018-12-05
/*** 日期處理工具類*/var DateUtil = function(){/** * 判斷閏年 * @param date Date日期對象 * @return boolean true 或false */this.isLeapYear = function(date){return (0==date.getYear()%4&&((date.getYear()%100!=0)||(date.getYear()%400==0))); }/** *
Time of Update: 2018-12-05
$(document).ready(function() {// 禁止右鍵$(document).bind("contextmenu", function() {return false;});// 禁止選擇$(document).bind("selectstart", function() {return false;});// 禁止Ctrl+C 和Ctrl+A$(document).keydown(function(event) {if ((event.ctrlKey &&
Time of Update: 2018-12-05
import java.io.IOException;import java.util.ArrayList;import java.util.HashMap;import java.util.Iterator;import java.util.List;import java.util.Map;import org.apache.commons.beanutils.BeanUtils;import org.codehaus.jackson.JsonParseException;import
Time of Update: 2018-12-05
import java.io.ByteArrayInputStream;import java.io.ByteArrayOutputStream;import java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;import
Time of Update: 2018-12-05
/** * Map對象,實現Map功能 * * * size() 擷取Map元素個數 * isEmpty() 判斷Map是否為空白 * clear() 刪除Map所有元素 * put(key, value) 向Map中增加元素(key, value) * remove(key) 刪除指定key的元素,成功返回true,失敗返回false * get(key) 擷取指定key的元素值value,失敗返回null * element(index)