Time of Update: 2018-12-05
Create a RESTful ResourceProblemYou’ve heard all the buzz about creating RESTful this and that. There’slittle doubt that Rails 2.0 heavily favors the REST architectural style1and that it will continue to do so.You’re feeling a little out of the loop,
Time of Update: 2018-12-05
今天因為項目需求,需要用js指令碼擷取網站的根路徑。在網上搜尋了一下,有方法。比如:function getRootPath() {var strFullPath = window.document.location.href;var strPath = window.document.location.pathname;var pos = strFullPath.indexOf(strPath);var prePath = strFullPath.substring(0, pos);var
Time of Update: 2018-12-05
今天項目需求,既說GridPanel的白色背景看久了太刺眼。所以在網上搜尋再自己羅列整理出如下的自訂樣式。/*GridPanel奇數行的背景顏色*/.x-grid3 { background-color: #FAF0E6 !important; } /*GridPanel偶數行的背景顏色*/.x-grid3-row-alt { background-color: #C0C0C0 !important;
Time of Update: 2018-12-05
用window.opener.location.reload();父視窗,總是彈出“不重新發送資訊,則無法重新整理網頁,請單擊重試再次發送資訊,或單擊以消返回正查看的頁” 如何避免出現對話方塊? 父視窗是使用: <script type="text/javascript"> <!-- function ss(){ form1.submit(); } window.setInterval(ss,10000); //--> </script> 定時重新整理的。一、
Time of Update: 2018-12-05
// 擷取URL var url = location.href; // 從?開始切,直到最後,擷取參數,然後按&切成參數數組 var paraString = url.substring(url.indexOf("?") + 1, url.length).split("&"); var paraObj = {} j = paraString[0]; var oid = paraString[1]; //
Time of Update: 2018-12-05
作業系統: Win2000SP4虛擬機器: VMWare5.5SoftICE: DriverStudio3.2內建的SoftICE二、安裝注意事項win2000sp4的安裝略過VMWare5.51、VMtools會對SoftICE有影響,導致無法Ctrl+D呼出SoftICE2、如果你已經安裝了VMTools,可以在虛擬機器的控制台->添加刪除程式
Time of Update: 2018-12-05
今天啟動Eclipse準備偵錯工具的時候發現提示:[2013-08-22 09:50:56 - adb] ADB server didn't ACK[2013-08-22 09:50:56 - adb] * failed to start daemon
Time of Update: 2018-12-05
<script LANGUAGE="JavaScript"><!-- Beginfunction calc() {first = document.loveform.name1.value.toUpperCase();firstlength = document.loveform.name1.value.length;second = document.loveform.name2.value.toUpperCase();secondlength =
Time of Update: 2018-12-05
獃子他現在已是研究生三年級,但從未有過愛之體會,在他大四那年,由於他一直在一個固定的教室上自習,注意到一個也一直在那個教室上自習的女孩,而且,很巧是,那個女孩每次都坐在他前面。他越來越喜歡她,但是,內向的他卻不敢有任何舉動,只是每晚默默注視她的背影。 大四第二學期,已經不用上自習了,為了心愛的女孩,他依然每天自習當他把秘密告訴舍友們後,其它6個哥們一致決定幫他走出第一步。
Time of Update: 2018-12-05
在使用伺服器端控制項的情況下,不能在頁面上直接使用在js中用confirm進行刪除判斷操作方式:在頁面放置兩個刪除按鈕控制項,一個是可見的,用於觸發背景confirm判斷,一個是隱藏的真正刪除按鈕,我們還需要一個隱藏控制項,用於儲存confirm的選擇結果源碼如下:aspx介面: <cc2:DcjetButton UseSubmitBehavior="false" OnClick="btnDelete_Click" Text="刪 除" runat="
Time of Update: 2018-12-05
using System;using System.ComponentModel.Design.Serialization;using System.ComponentModel;namespace test{ public class TSoInfo { public string Brush; } public class TConvert { [STAThread] static void Main(string[]
Time of Update: 2018-12-05
using System;using System.Net.Mail;using System.Net;/// <summary>/// 說明:在.net2.0以上版本中寄送電子郵件的方法樣本/// 用到的類主要位於System.Net.Mail和System.Net命名空間下/// 作者:周公/// 日期:2008-08-08/// 首發地址:http://blog.csdn.net/zhoufoxcn/// </summary>public class
Time of Update: 2018-12-05
微軟的.NET 3.x 預設情況下是不可以在XP及以下版本安裝的.安裝時會提示,此作業系統不支援此安裝. 要想使其在WIN2000上能夠安裝起來.可以使用ORCA工具,開啟要要修改的dotet3.x的安裝檔案--一個MSI檔案(如果你的安裝檔案是EXE就不行了)在左邊的列表裡找到launcher...字樣的一欄,點一下,看右邊,是不是有個列表,找到
Time of Update: 2018-12-05
<html><head></head><body><script type="text/javascript">function msg(e) // e = event{var target; //initialisationvar browser=navigator.appNamevar b_version=navigator.appVersionvar version=parseFloat(b_version)if (brows
Time of Update: 2018-12-05
我的程式正好用到BarCode. 終於在www.rcomponent.com 發現一個很好用的 .net BarCode組件. 它支援的type很多, 但在實際應用中, 只要一中. 我就用到了一種很少見的..我用的一小段code, 也是它help裡的:this.rBarcode.Angle = 0;this.rBarcode.Color = System.Drawing.Color.White;this.rBarcode.ColorBar =
Time of Update: 2018-12-05
本人的系統是RH4.0AS.想升級GCC到4.3.0版本,在安裝前,需要先安裝MPFR和GMP.下載MPFR (mpfr-2.3.0), MPFR_patch 和GMP (gmp-4.2.2).分別加壓縮.[root@ibm ~]# tar jxf mpfr-2.3.0.tar.bz2 &[root@ibm ~]# tar jxf gmp-4.2.2.tar.bz2 &安裝過程是先安裝gmp,然後再安裝mpfr.安裝gmp[root@ibm ~]# cd
Time of Update: 2018-12-05
算算做程式員的日子已經有快6年之久了這些日子做程式員也做得很恍惚,做人也是如此。沒有明確的目標,或者有了目標也沒有很好的堅持下來。當靜下心來思考時,才感覺有種一事無成的茫然。當看到別的同學、同事、朋友都混得不錯時,才驚醒原來生活不該如此。人需要常常思考,程式員更是如此。總結的結果就是,一直目標不明確,做了很多事,但是總結的太少,所以進步也很少,很難提升自己的高度,跟環境相關,跟自身更相關。跟同樣有迷惑的兄弟們共勉......
Time of Update: 2018-12-05
需求千奇百怪,有的要求表格裡的內容自動換行,有的不要求,其實設定DataGrid的CSS樣式單屬性即可實現大部分的需求,但對於不換行的實現,單靠樣式單還不能完全滿足要求,下面就是一種解決的方法: <%@ Page Language="C#" AutoEventWireup="True" %><%@ Import Namespace="System.Data" %><html><script runat="server">int
Time of Update: 2018-12-05
1.struts-xml設定檔的設定: <constant name="struts.multipart.maxSize" value="15097152"/><!-- 檔案上傳中整個請求內容允許的最大位元組數為15M --> <!-- 提供檔案上傳功能 --> <interceptor-ref name="fileUpload"/> <!
Time of Update: 2018-12-05
using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using