Time of Update: 2018-12-04
根據屬性獲得元素1.比如要擷取頁面p標籤中屬性有id的元素 $("p[id]").css("color","red");根據屬性值獲得元素1.$。在jQuery 中$("<span>"),這個文法等同於$(document.createElement("span")) ,這是一種用法,在選擇元素的時候還會這樣子的用:[attribute$=value],匹配給定的屬性是以某些值結尾的元素。下面舉個例子來說明一下:HTML代碼<input name="newsletter" /
Time of Update: 2018-12-04
struts標籤中value都會被解析,如,<s:property value="foo"/> 會被解析成getFoo()我想問一下,還有沒有其它的屬性會解析?另外就是<s:hidden id="_r" value="form.r"/>我試這個時,發現form.r並沒有被解析?換成<s:hidden id="_r"
Time of Update: 2018-12-04
異常如下2010-03-13 09:26:06,224 INFO [STDOUT] (http-0.0.0.0-8080-3) 09:26:06,223 WARN [OgnlValueStack] Error setting expression 'struts.token.name' with value '[Ljava.lang.String;@5cfe5cfe' ognl.OgnlException: source is null for getProperty(null,
Time of Update: 2018-12-04
今天遇到一個bug,項目載入的時候出現錯誤2009-09-08 17:21 12,671:ERROR [http-8050-Processor24] (Compiler.java:407) - Error compiling file: /D:/Tomcat 5.0/work/Catalina/localhost/unicom//org/apache/jsp\index_jsp.java [javac] Compiling 1 source file系統資源不足。
Time of Update: 2018-12-04
一 基本選取器 $("input“) :選擇所有是input標籤的元素 $("#input1"):選擇id為input1的元素 $(".acss"):選擇所有包含acss 這個css類樣式的 代碼 <body> <a href="">link</a> <input id="input1"
Time of Update: 2018-12-04
在 Apache 伺服器中,KeepAlive 是一個布爾值,On 代表開啟,Off 代表關閉,這個指令在其他眾多的 HTTPD 伺服器中都是存在的。 KeepAlive 配置指令決定當處理完使用者發起的 HTTP 要求後是否立即關閉 TCP 串連,如果 KeepAlive 設定為On,那麼使用者完成一次訪問後,不會立即中斷連線,如果還有請求,那麼會繼續在這一次 TCP 串連中完成,而不用重複建立新的 TCP 串連和關閉TCP 串連,可以提高使用者訪問速度。 那麼我們考慮3種情況: 1。
Time of Update: 2018-12-04
set JAVA_OPTS='-Xms64 -Xmx512'上面無效的話這樣寫:declare -x JAVA_OPTS="-Xms128m -Xmx256""declare -x"一定要加,不然就會報-x指令無效,還有後面的引號也要注意加上 wq後,重啟tomcat即可,ps ax後看到tomcat的進程會變成類似/opt/jdk1.6.0/bin/java -Xms128m -Xmx256m
Time of Update: 2018-12-04
$("#myELement") 選擇id值等於myElement的元素,id值不能重複在文檔中只能有一個id值是myElement所以得到的是唯一的元素$("div") 選擇所有的div標籤元素,返回div元素數組 $(".myClass") 選擇使用myClass類的css的所有元素 $("*") 選擇文檔中的所有的元素,可以運用多種的選擇方式進行聯合選擇:例如$("#myELement,div,.myclass") 層疊選取器:
Time of Update: 2018-12-04
轉自:http://www.cnblogs.com/Dot-Boy/archive/2009/03/27/1423315.html1、完全隱藏在<boby>裡加入scroll="no",可隱藏捲軸;<boby scroll="no">2、在不需要時隱藏指當瀏覽器視窗寬度或高度大於頁面的寬或高時,不顯示捲軸;反之,則顯示;<boby
Time of Update: 2018-12-04
1. json的資料格式: var map = {"uname":'',"upwd":'',"role":{“rolename”:'',"roleLevel":''}}把這個json格式綁定到datagrid的filed屬性上:columns : [ [ { field : uname, title : uname,width : 200,rowspan : 2,align : 'center'},{ field : upwd, title : upwd,width : 80,
Time of Update: 2018-12-04
action: public String busiRangeNameById(Integer busiRange){ if(busiRange==null)return ""; ProductType productType = companyManageFacade.getProductType(busiRange); if(productType == null)return ""; else return
Time of Update: 2018-12-04
<div id="Scroll" style="background-color: Green; width: 2000px; height:2000px;">請寫很多資料…… </div> <div id="lookMore">more...</div><script src="jquery-1.7b1.js" type="text/javascript"></script><script
Time of Update: 2018-12-04
<div id="testa" style="position: relative;top:10%;"><!-- 這裡的padding-top是讓搜尋欄向下點,也就是與"添加"等按鈕對齊,但在HTML裡面不好用,在jsp頁面中已測試可用 --><input id="sss" class="easyui-searchbox" searcher="qq" prompt="請輸入查詢內容"
Time of Update: 2018-12-04
之前使用struts1的時候是通過寫filter來處理亂碼,把寫的filter搬到struts2,配置了WEB.XML發生沒有效果,請求根本就沒有通過filter。原因Struts2在web.html配置了處理action請求的filter:<filter> <filter-name>struts2</filter-name>
Time of Update: 2018-12-04
最近做一個複製到剪下板的功能 在網上找了很多都不好用 最後發現在了 這篇文章很不錯 簡潔好用 貼出來 希望能幫到更多人原文地址:http://www.lsproc.com/wiki/snippets:copytoclipboard此代碼修改自 discuz!, 簡易實現<script>var clipboardswfdata; var setcopy_gettext = function(){ clipboardswfdata =
Time of Update: 2018-12-04
<package name="default" extends="struts-default"> <package name="default" extends="json-default"> .Action中的配置 <action name="testAction" class="com.json.action.TestAction" method="testMethod"> <interceptor-ref
Time of Update: 2018-12-04
有時候預設的系統最大檔案開啟數量不夠大,需要設定下,如果希望永久生效,就修改/etc/security/limits.conf,然後加入以下內容,退出再重新登陸即可 * hard nofile 65535 * soft nofile 65535 需要生效的app需要重啟。 另外在/etc/rc.sysinit裡加入ulimit -n有時候預設的系統最大檔案開啟數量不夠大,需要設定下,如果希望永久生效,就修改/etc/security/limits.conf,然後加入以下內容,退出再重新登陸即可
Time of Update: 2018-12-04
為單個Web應用 配置逾時時間可以在web.xml中使用<session-config>元素,如<web-app><!–filter.listener,servlet,and servlet- mapping等元素要在session-config之前–> <session-config> <session-timeout>15 </session-timeout> </session-config> …</
Time of Update: 2018-12-04
本文章提供一款jquery遍曆select教程代碼,主要是利用了$("#<%=ddl_xreg_id.clientid%> option").each(function() {形式來each遍曆一次,這樣所有的select就給查詢了一次。<script src="jquery-1.2.1.js" type="text/網頁特效"></script><script language="javascript"
Time of Update: 2018-12-04
解決 jQuery 與其它 js(Prototype) 庫衝突的方法很簡單,就是使用 jQuery 的 jQuery.noConflict() 函數。一、在運行這個函數後,可以恢複使用別名 $ ,在這個函數的範圍中仍然將 $ 作為 jQuery 的別名來使用。jQuery Code:jQuery.noConflict();(function($) { $(function() { // 使用 $ 作為 jQuery 別名的代碼 });})(jQuery);// 基於其他庫用 $