| |

VerySource

 Forgot password?
 Register
Search
Author: zjsxsyzgh

What exactly is a prototype? Why use prototype?-Novice ask ...

[Copy link]

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-4-25 08:00:01
| Show all posts
Write in it will increase the memory overhead every time an object is instantiated
The way to use the prototype chain is the opposite ...
Reply

Use magic Report

1

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-6-13 16:45:01
| Show all posts
prototype is used to inherit the prototype object, mainly to save memory space. -----The authoritative guide to JavaScript has mentioned
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list