Code note (7): Code note

Source: Internet
Author: User

Code note (7): Code note

1.

Quickly change weblogic Data source: Close weblogic, under domain, find config \ jdbc \ xxx-jdbc.xml to modify

2.

Flashing: (implemented using setInterval)

Var msecs = 500; // intervalID = setInterval ("shine ()", msecs); function shine () {} clearInterval (intervalID); // stop flashing


3.

Dblink usage:

Create a public database link

Create public database link "database link alias" connect to "login user" identified by "Login Password"

Dblink is a database object that allows you to access remote tables and execute remote programs. dblink is a one-way connection. When db_link is created, oracle records its metadata in the data dictionary.

4.

Convert JavaScript objects to strings:

Var list = new String(listReg.exe c (info); // replace () cannot be called directly without a new String ()

5.

Regular Expression:

Var reg = /(? = Fuck :). +? (? =) // Spaces do not need to be escaped. Just use spaces to match the content between "fuck:" and "".

6.

File. separator; get the slash (File directory) (applicable to java)

7.

Trim () of jquery ():

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






Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.