ExtJS learning ----------- Ext. Number, ExtJS extension of Number in javascript, extjs Extension
ExtJS extension of the Number in javascript, you can refer to its help documentation, Documentation: http://download.csdn.net/detail/z1137730824/7748893
The following describes some of the methods:
(1) constrain
Constrain (Number number Number, Number min, Number max): Number
Check whether the given value is within the constraints. If the number is already within the value range, this value is returned. Otherwise, if the value is greater than the maximum value, the maximum value is returned. If the value is smaller than the minimum value, the minimum value is returned ., Otherwise the min or max value is returned depending on which side of the range is note that this method does not change the given value itself. Note that this method returns the constrained value but does not change the current number.
Parameters
Returns
(2) randomInt, which randomly generates a random number in the range
RandomInt (Number from, Number to): Number
Returns a random integer between the specified range (random)
Parameters
- From: Number
Lowest value to return.
- To: Number
Highst value to return.
(3) toFixed, rounded to the digits after the decimal point of the input value
ToFixed (Number value, Number precision)
Formats a number using fixed-point notation
Parameters
Call extjs in javascript
Hi.baidu.com/ext_js
I think you should be very satisfied with this.
Ext. Msg. show ("...");
What is ExtJS? How to learn
I will give you a simple tutorial on getting started. ExtJs is a framework written in js. There are a lot of discussions on it on the Internet.
For more information, see
Onlyaa.com/..2.html