0

私は現在、JavaScript のプラットフォームで Windows ストア アプリを開発しています。アプリ バーにボタンを追加しました。

ボタンがクリックされた場合、それは open である必要がありますfb.me/mypage。これを行う方法がわかりませんか?手伝ってください。

HTML コード:

<div id="appBar" data-win-control="WinJS.UI.AppBar" data-win-options="">
        <button 
            data-win-control="WinJS.UI.AppBarCommand" 
            data-win-options="{id:'button1',label:'Like Us',icon:'like',
                section:'selection',tooltip:'Like us'}">
        </button>
</div>
4

1 に答える 1

0
    document.getElementById("button1").addEventListener("click", function () { //Whatever  you want to do });

上記のコードを配置します

    args.setPromise(WinJS.UI.processAll().then(function () { //place it here}); 
于 2013-08-19T10:26:15.920 に答える