![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 999 Pomógł: 30 Dołączył: 14.01.2007 Skąd: wiesz ? Ostrzeżenie: (0%) ![]() ![]() |
Witam,
Chciałbym rozszerzyć istniejącą klasę o dodatkową metodę. Jak to zrobić? Referencja Obiektu [::LINK::]: Cytat BookmarkTreeNode - A node (either a bookmark or a folder) in the bookmark tree. Child nodes are ordered within their parent folder.
id ( string ) - The unique identifier for the node. IDs are unique within the current profile, and they remain valid even after the browser is restarted. parentId ( optional string ) - The id of the parent folder. Omitted for the root node. index ( optional integer ) - The 0-based position of this node within its parent folder. url ( optional string ) - The URL navigated to when a user clicks the bookmark. Omitted for folders. title ( string ) - The text displayed for the node. dateAdded ( optional number ) - When this node was created, in milliseconds since the epoch (new Date(dateAdded)). dateGroupModified ( optional number ) - When the contents of this folder last changed, in milliseconds since the epoch. children ( optional array of BookmarkTreeNode ) - An ordered list of children of this node. Ten post edytował orglee 9.01.2010, 13:42:05 |
|
|
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 53 Pomógł: 1 Dołączył: 28.09.2007 Skąd: Gdynia Ostrzeżenie: (0%) ![]() ![]() |
Tak samo jak rozszerza się każdą inną klasę.
Kod MojaKlasa.prototype.mojaMetoda = function() { } |
|
|
![]() ![]() |
![]() |
Aktualny czas: 22.08.2025 - 22:29 |