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) {}});