代碼雜記(七),代碼雜記

來源:互聯網
上載者:User

代碼雜記(七),代碼雜記

1.

快速更改weblogic資料來源:將weblogic關閉,到domain下,找到config\jdbc\ xxx-jdbc.xml修改即可

2.

閃爍:(用setInterval實現)

var msecs = 500; //閃爍間隔intervalID = setInterval("shine()",msecs);function shine(){}  clearInterval(intervalID);//停止閃動


3.

Dblink的使用:

建立公開資料庫連結

Create public database link “資料庫連結別名” connect to “登入使用者” identified by “登入密碼”

Dblink是資料庫物件、允許你訪問遠端資料表及執行遠程程式,dblink是單向串連、建立db_link時,oracle會在資料字典記錄其中繼資料。

4.

Js的object轉字串:

var list = new String(listReg.exec(info));//不用new String,不能直接調用replace()

5.

Regex:

 var reg = /(?=fuck:).+?(?= )/; //空格不需要轉義,直接空格即可,匹配“fuck:”與“ ”之間的內容

6.

File.separator;  擷取斜杠(檔案目錄)(適用於java)

7.

jquery的trim():

$.trim($("#column").val());






相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.