Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [Chromium] Dziedziczenie - Jak dodać metodę do klasy Bookmark
Forum PHP.pl > Forum > Po stronie przeglądarki > JavaScript
starach
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.
pp-layouts
Tak samo jak rozszerza się każdą inną klasę.

Kod
MojaKlasa.prototype.mojaMetoda = function() {
}



To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.