AFAIKミューテーションオブザーバーはIEではまだ利用できません。Chrome、Safari、Firefoxにはそれぞれの実装があり、標準化プロセスを通じて機能します。誰か(できればMSの従業員)がIEの話を知っているのか、それとも私が見逃した記事へのポインタを教えてくれるのだろうかと思います。
14280 次
3 に答える
1
DOM ミューテーションの処理に使用するWindows 8アプリ開発に関する最近の記事があります。onpropertychange
例 4: タブ選択のプログラムによる変更を検出するために、ARIA で選択されたプロパティの onpropertychange を処理します。
tabElement.attachEvent("onpropertychange", selectionChanged);
function selectionChanged(event)
{
if (event.propertyName === "aria-selected")
{
if (event.srcElement.getAttribute("aria-selected") === "true")
{
// execute code to load the content that corresponds with the selected tab element
}
else
{
// execute code for deselected tab, if needed
}
}
}
参考文献
于 2013-01-10T19:18:56.787 に答える