Code note (6): Code note

Source: Internet
Author: User

Code note (6): Code note

1.

After the svn ip address is changed, how can I update the code again?

Right-click -- relocate to update the ip address.

If the preceding error occurs, back up the source code and delete the svn information.

After the new Code is checkout, the backup code (if you remember to change it better) is replaced with the new code, then updated and submitted.

2.

Websocket:

Websocket allows you to establish a non-http bidirectional connection between the server and the client. This connection is real-time and permanent, unless explicitly closed.

3.

JSON. parse: convert text to js object

JSON. stringify: Convert JavaScript objects to text

4.

* *** Oracle supports sorting of Chinese characters by pinyin, radical, and stroke

NLS_SORT = SCHINESE_RADICAL_M first, second

NLS_SORT = SCHINESE_PINYIN_M pinyin

NLS_SORT = SCHINESE_STROKE_M strokes first and second

Order by nlssort (fruit, 'nls _ SORT = SCHINESE_PINYIN_M ') desc

Or:

Order by DECODE (fruit, Apple ', 1, 'Banana', 2, 'pe', 3) DESC

5.

Parse json data in the background:

Var json = eval ("(" + message + ")");

Or:

Var json = (new Function ("", "return" + message ))();

Then obtain the data using the vertex operator.

6.

Using iframe may make styles different. Using div can solve this problem.

Iframe: $ ("# xxxiframe"). attr ("src", url );

Div: loadURL (url, $ ("# xxxdiv") is equivalent to $ ("# xxxdiv"). load (url );

7.

Post submission:

</pre><pre name="code" class="javascript">$.post(url, {param1: paramValue1,param2: paramValue2,}, function(data) {}});







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.