瀏覽代碼

rajouter la racine des ul dans index.html

master
tibo 6 年之前
父節點
當前提交
d812ff0a69
共有 1 個檔案被更改,包括 6 行新增0 行删除
  1. +6
    -0
      index.html

+ 6
- 0
index.html 查看文件

@ -43,9 +43,15 @@ function afficherArbre()
var heritage = [ 'XXX' ];
var m14_ul = [ document.getElementById('smeti_list') ];
var m14_span = [ null ];
var ul = document.createElement('ul');
while(m14_ul[0].firstChild) m14_ul[0].removeChild(m14_ul[0].firstChild);
// Ajouter la racine des UL
ul.setAttribute('class','ul_no_list');
m14_ul[m14_ul.length-1].appendChild(ul);
m14_ul.push(ul);
liste_instructions.forEach(function(element){
// if (element.instruction != 'M14') return true;
// if (element.type != courant) return true;

Loading…
取消
儲存