📜  javascript 拆分数组 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:41.777000             🧑  作者: Mango

代码示例6
var linkElement = document.getElementById("BackButton");
var loc_array = document.location.href.split('/');
var newT = document.createTextNode(unescape(capWords(loc_array[loc_array.length-2]))); 
linkElement.appendChild(newT);