Build a simple http server with the following code:
[Javascript]// Server. jsVar http = require ('http ');Var server = http. createServer (function (request, response ){Require ('.' + request. url );Response. end (global. output );});Server. listen
Friends who have used it all know that the setValue and SetValue of the RadioGroup component of extjs seem to have bugs. It is unsuccessful.
Here I will solve this problem:
1. Code for declaring RadioGroup:
[Javascript]Var radiogroup = new Ext. form.
We must have encountered similar problems during the development process. If we directly pass the array obtained by js to the backend, the backend cannot differentiate the array, because if the js array is two-dimensional, it is like this: 1, zhang
Reference example: detailed line
The "showRowDetail" method of a table can add a detailed row to a normal table row.
After obtaining the DOM element of the detailed row through the "getRowDetailCellEl" method, you can add any HTML content to the DOM
I. Differences between event and method
Method, you can directly call the object method in the program, obj. method ();Event is the processing function when an event occurs. It is set by listening to the event.Use configuration itemsListeners :{Xxx:
Example: Cell editing Verification
I. Set Editor verification rules
employee accountYou can use the vtype and onvalidation events of the editor to implement the editor validation rules. For details, see data verification.Ii. Listening for
The following code is my test code, which is important:
[Plain]/* Enable ECMAScript "strict" operation for this function. See more:* Http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/*
Example: Tree control
Create a Tree
ShowTreeIcon = "true" textField = "text" idField = "id">Data Structure: Tree
The data structure returned by the url is as follows:
[{Id: "base", text: "Base", expanded: false,Children :[{Id: "ajax", text: "Ajax "},
As websites gradually become "Internet applications", Javascript code embedded into webpages becomes increasingly large and complex.
Web pages are becoming more and more like desktop programs, requiring a division of labor and collaboration
Recently, someone asked me a question on the internet, inserting text or images in the Editable div. I have never used the web online editor and will not study the source code. Later, this function was also used in an online chat web project. I took
Simple use of jQuery callback FunctionsFor example, if we want to trigger an event after clicking a button,
First, hide some specified content,
Then, the related information dialog box is displayed.
If you use a common method,
If callback functions
The author is Peter Rybin, a member of the Chrome developer tool team.
In: https://gist.github.com/4158604
In this article, we will use Chrome's Developer Tools to learn two important concepts in JavaScript: "closures" and "Internal Attributes
Var isMobile =/^ (? : 13 \ d | 15 \ d) \ d {5} (\ d {3} | \ * {3}) $ /; var isPhone =/^ (0 \ d {2, 3 })-)? (\ D {7, 8}) (-(\ d {3 ,}))? $/; If (! IsMobile. test (value to be verified )&&! IsPhone. test (value to be verified) {alert ("Please enter
Let me explain the keywords and meanings of the validation form. JQuery. validate comes with: required: "required field", remote: "correct this field", email: "enter an email in the correct format", url: "enter a valid URL", date: "enter a valid
In JS, you can set style. display or style. the visibility attribute is used to control whether the elements are displayed. display = block and style. when visibility = visible, the element is displayed in style. display = none and style. when
Generally, regular expressions use the following "symbols": ^-indicates that a string must have such a word before it. For example, ^ http: // indicates that http must exist before it: // $-indicates that the string must be followed by such a word .?
Highcharts translation series 6: legend options
ParametersDescriptionDefault Value AlignHorizontal position of the legendCenter BackgroundColorLegend background colorNull BorderColorBorder color of the legend#909090 BorderRadiusCorner radius of the
Highcharts translation series 12: gauge measurement chartDescription
Measurement charts require highcharts-more.js support
Attribute
ParametersDescriptionDefault Value AnimationAnimationTrue ColorMain color or sequence
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