From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/jetpack/basics/index.html | 71 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 files/ja/jetpack/basics/index.html (limited to 'files/ja/jetpack/basics') diff --git a/files/ja/jetpack/basics/index.html b/files/ja/jetpack/basics/index.html new file mode 100644 index 0000000000..bdeaf64798 --- /dev/null +++ b/files/ja/jetpack/basics/index.html @@ -0,0 +1,71 @@ +--- +title: Jetpack の基礎 +slug: Jetpack/Basics +translation_of: Archive/Mozilla/Jetpack/Basics +--- +

Console クラス

+

エラーコンソールに情報を書き込みます。 コンソールはFirefoxの"詳細ツール"メニューから開く事ができます。

+

名前空間 : console

+

メソッド:

+ +

メソッド: log

+

通知ボックスを描画します。

+

オプション

+ +
サンプルコード:
+
console.log("Hello World!");
+
+

Notifications クラス

+

通知ボックスはブラウザの右下に現れる、重要な通知をユーザに表示する為のボックスです。

+

名前空間: jetpack.notifications

+

メソッド: show

+

通知ボックスを描画します.

+
オプション
+ +
サンプルコード:
+
jetpack.notifications.show("Hello World!");
+
+var myBody = " My first message body on jetpack";
+var myIcon ="http://www.mozilla.com/favicon.ico";
+jetpack.notifications.show({title: "My first Message on jetpack", body: myBody, icon: myIcon});
+
+
+

Tabs クラス

+

Firefoxのタブに関する情報を取得する為のクラスです。

+

名前空間: jetpack.tabs

+

プロパティ

+ +

イベント

+ +

メソッド: open

+

指定したURLで新しいタブを開きます.

+
サンプルコード:
+
jetpack.tabs.open("http://www.example.com");
+

-- cgit v1.2.3-54-g00ecf