亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

What is an object?

What is an object?

All data in JavaScript can be viewed as objects, and each object has its properties and methods.

The properties of an object reflect certain specific properties of the object, such as: the length of the string, the length and width of the image, the text in the text box (Textbox), etc.;

The method of an object can do something to the object, for example, "Submit" of the form, "Scrolling" of the window , etc.

For example, when applying for a variable:

var my_var="ipnx.cn";

In fact, a string object is created. This object has The built-in attribute my_var.length = 10

At the same time, this string object also has several built-in methods, such as the my_var.toUpperCase() method that can convert characters to uppercase; the my_var.charAt(n) method Can return the nth character.

Continuing Learning
||
<html> <head> <script type="text/javascript"> var my_var="ipnx.cn"; var mynum=my_var.length document.write("數(shù)組長度:"+mynum); </script> </head> <body> </body> </html>
submitReset Code