The method defined by prototype for a class must be defined first and then used. It is related to the operation principle of js.
Prototyp can only define methods and variables in the class, and there is no such property in the
instance directly assigns the properties defined by the prototype to generate a prototype in the instance. New properties, rather than changing the properties in the prototype, if the data is pushed in, it is shared by all instances.
So the properties defined by prototyp can be used as initial values for each instance.
Class- defined methods are not visible in the instance (equivalent to static methods), and class-defined parameters are not visible in the instance (equivalent to static variables)
<button>
in the button element Inside, you can place content such as text or images. This is the difference between this element and buttons created with the input element.
submit, reset, button
<canvas> graphic container
<caption> defines table title
https://blog.csdn.net/menglexinglai/article/details/39250613
web front-end technology
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326204681&siteId=291194637
Recommended
Ranking