User zone subsystem DesignThe user cabling subsystem is composed of connections connecting terminal devices to the information outlet. The number of voice and data information outlets is determined according to user requirements.Determine the installation position of user information outlet: The RJ45 buried information outlet should be 30cm to 150cm away from the power outlet next to it, information outlet and power outlet along the low side of the horizontal plane 30cm from the floor and power
system of Jiaozuo Institute of Technology mainly refers to the cabling in buildings. the campus network Integrated Wiring System for the new campus of Jiaozuo Institute of Technology covers a wide range of projects, including 12 family buildings, 2 faculty buildings, 2 experimental buildings, 2 teaching buildings, 10 office buildings, and 1 library, 12 student dormitory buildings with a total of 5127 information points. extensive network coverage, complex layers, diverse application environment
materials and printing clearly, and in most cases there are anti-counterfeit labels outside the carton.
2. Work on twisted pair case. The insulation skin of twisted pair wires should contain information such as the place of origin, implementation standard, product category, and cable length. Cat5 is the identification of Category 5, cat5e is the identification of Category 5, and cat6 is the identification of category 6 ".Products with uppercase lett
cables is different in operation. In fact, the use of telephone cables is changing. Many new systems use four pairs of unshielded twisted pair wires that are the same as those of digital networks. The residential data communication cable is a typical 4-to 100 Ω cat5e or cat5e twisted pair cable. It can be connected to the indoor wall outlet from the disconnects mounted from the network interface device out
represented since 2000. Due to the development of communication networks and the emergence of cat5e and cat6 cables, the related standard TIA/EIA-568-B and ISO/iec11801:2000 have successively appeared, and high-speed Ethernet is widely used.
With the increase of intelligent engineering in China, the quality of cabling construction becomes more and more important. With reference to international and domestic standards, the Ministry of Construction iss
With the development of science and technology, the price of computer is getting lower, the performance is getting better, the transmission speed of LAN is more and more fast, and the transmission medium of LAN has shifted from coaxial cable to twisted pair and optical fiber, twisted-pair line from the initial CAT1, CAT3, CAT5 to the present CAT5e, CAT6 CAT7.
Although the performance of twisted pair has been continuously improved, but there is a para
() –>4Oldarr.pop () –>3Oldarr.pop () –>2Oldarr.pop () –>1Oldarr.pop () –>undefined (empty array popup)Start in Splice (Start,deletecnt,args) indicates the beginning of the subscript, deletecnt indicates the number of elements to be removed from the start of the subscript, including the element, and the delete operation returns the deleted element.Args is used to replace deleted elements (which can have multiple arguments), and start and deletecnt mus
the list:
var arr = [' A ', ' B '];
Arr.unshift (1,2);
Console.log (arr); [1, 2, "a", "B"]
In addition to these two methods, you can also use the splice () method to add an array item to an array:
var arr = [' A ', ' B ', ' C ', 1,2];
Arr.splice (2,0, ' d ', ' C ', ' e ');
Console.log (arr); ["A", "B", "D", "C", "E", "C", 1, 2]
In addition to the splice () method, you can use th
(oldArr. pop ()-> [5, 6] (the last element [5, 6] is displayed here, instead of 6)In this case, oldArr-> [1, 2, 3, 4]OldArr. pop ()-> 4OldArr. pop ()-> 3OldArr. pop ()-> 2OldArr. pop ()-> 1OldArr. pop ()-> undefined (empty array pop-up)Now let's take a look at unshift and shift after talking about push and pop.Both methods are performed through the operation on the array header. Other methods are similar to push and pop. However, in IE, The unshift method returns undefined.
Example 2:Var oldArr
and shift.Both of these methods are performed on the head of the array, while others are similar to push and pop, but the Unshift method in IE returns the undefinedExample 2:var oldarr2=[1,2];Oldarr2.unshift (3) –>undefinedAt this time OLDARR2 is –>[3,1,2]Oldarr2.shift () –>3At this point oldArr2 is []Next, take a look at the powerful splice, which can be used to add, delete, and manipulate elements at random positions in the originalThe start of the
)at this time oldarr–>[1,2,3,4]Oldarr.pop () –>4Oldarr.pop () –>3Oldarr.pop () –>2Oldarr.pop () –>1Oldarr.pop () –>undefined (empty array popup)now finish the push and pop and take a look at Unshift and shift .Both of These methods are performed on the head of the array, while others are similar to push and pop, but the Unshift method in IE returns the undefined Example 2:var oldarr2=[1,2];Oldarr2.unshift (3) –>undefinedat this time OLDARR2 is –>[3,1,2]oldarr2.shift () –>3at this point oldArr2 i
size comparison function defined by comparefn. The comparefn function must accept two parameters: element1 and element2. If you want element1 to be placed before element2, a negative number is returned. If you want element1 to be placed after element2, a positive number is returned, if the two numbers are treated equally (that is, the original order is maintained), 0 is returned. When comparefn is omitted, the elements are arranged alphabetically. For example, for the defined comparison functio
oldarr–>[1,2,3,4]Oldarr.pop () –>4Oldarr.pop () –>3Oldarr.pop () –>2Oldarr.pop () –>1Oldarr.pop () –>undefined (empty array popup)Now let's talk about push and pop and see Unshift and shift.Both methods are operated through the head of an array, others are similar to push and pop, but in IE the Unshift method returns the undefinedExample 2:var oldarr2=[1,2];Oldarr2.unshift (3) –>undefinedAt this time oldArr2 for –>[3,1,2]Oldarr2.shift () –>3At this point oldArr2 is [1,2]Next, look at the powerf
comparefn. The comparefn function must accept two parameters: element1 and element2. If you want element1 to be placed before element2, a negative number is returned. If you want element1 to be placed after element2, a positive number is returned, if the two numbers are treated equally (that is, the original order is maintained), 0 is returned. When comparefn is omitted, the elements are arranged alphabetically. For example, for the defined comparison function cmp: function cmp (e1, e2) {return
example:
Example 1:
Var oldArr = [1, 2, 3];
Alert (oldArr. push (4, [5, 6])-> 5 (here we will only calculate [5, 6] as an element, and return the updated array length of 5)
In this case, oldArr-> [1, 2, 3, 4, [5, 6]
Alert (oldArr. pop ()-> [5, 6] (the last element [5, 6] is displayed here, instead of 6)
In this case, oldArr-> [1, 2, 3, 4]
OldArr. pop ()-> 4
OldArr. pop ()-> 3
OldArr. pop ()-> 2
OldArr. pop ()-> 1
OldArr. pop ()-> undefined (empty array pop-up)
Now let's take a look at unshift
and shift.Both of these methods are performed on the head of the array, while others are similar to push and pop, but the Unshift method in IE returns the undefinedExample 2:var oldarr2=[1,2];Oldarr2.unshift (3) –>undefinedAt this time OLDARR2 is –>[3,1,2]Oldarr2.shift () –>3At this point oldArr2 is []Next, take a look at the powerful splice, which can be used to add, delete, and manipulate elements at random positions in the originalModify on ArrayS
); // [1, 2, 3]Console. log (a. length); // 3
Queue Method
Since the stack method has been implemented, how can we reduce the number of first-in-first-out queues? shift can delete the minimum element of the array index and reduce the index of the subsequent elements by one, while length is also reduced by one, in this way, shift/push can be used to simulate the queue. Of course, there is an unshift method corresponding to the shift method, which is used to add an element to the array header.
Javascript array operation function summary, javascript Array Function
In fact, usually a lot of push and pop should be used, but it should be noted down for later use.
Shift: Delete the first entry of the original array and return the value of the deleted element. If the array is empty, undefined is returned.
Copy codeThe Code is as follows:Var a = [1, 2, 3, 4, 5];Var B = a. shift (); // a: [2, 3, 4, 5] B: 1
Unshift: Add the parameter to the beginning of the original array and return the length
This article mainly summarizes and introduces Javascript array operation functions. For more information, see push and pop, which are usually used, for later use.
Shift: Delete the first entry of the original array and return the value of the deleted element. If the array is empty, undefined is returned.
The Code is as follows:
Var a = [1, 2, 3, 4, 5];Var B = a. shift (); // a: [2, 3, 4, 5] B: 1
Unshift: Add the parameter to the beginning of the original array and return the length of the ar
parameter) is default, the result is always returned until the end of the array. If the parameter is negative, it is truncated from the back to the front. Remember that this function is used to create a new array. Well.
[Cc lang = 'javascript ']// All operations are performed on the original arrayVar arr = [1, 2, 3, 4, 5, 6, 7, 8];
Arr. slice (); // If the array element starts from 0, it returns the intermediate element from the first to the third: [2, 3]Alert (arr. join (); // [1, 2, 3, 4, 5,
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.