moz0508ex.txt

来自「mozilla developer book examples.」· 文本 代码 · 共 33 行

TXT
33
字号
<?xml version="1.0"?>
<!DOCTYPE  window>
<window id="test-win"
  xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  orient="vertical"
  onload="load( );">
<script type="application/x-javascript">
  function load( ) {
    el = document.getElementById("t");
    el.addEventListener("click", stopEvent, false);
  }
  function stopEvent(e) {
    // this ought to keep t-daddy from getting the click.
    e.stopPropagation( );
  }
</script>

<tree>
  <!-- tree columns definition omitted -->
  <treechildren flex="1" >
    <treeitem id="t-daddy"
      onclick="alert('t-daddy');"  // this event is never fired
      container="true" parent="true">
      <treerow id="t">
        <treecell label="O'Reilly" id="t1" />
        <treecell label="http://www.oreilly.com" id="t2" />
      </treerow>
     </treeitem>
  </treechildren>
</tree>

</window>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?