function addChildAccord(childAccord) {
var abcde = childAccord.toString();
var element = document.createElement("input");
//Assign different attributes to the element.
element.setAttribute("type", "text");
element.setAttribute("name", "abcde");
element.setAttribute("id", "abcde");
element.setAttribute("value", abcde);
element.setAttribute("readonly", "readonly");
var createdElem = document.getElementById("filterElementId");
//Append the element in page (in span).
createdElem.appendChild(element);
}
function check(link) {
alert(link);
$(link).replaceWith($(link).text());
}
//这会创建动态链接,我需要在用户点击任何链接时,其他链接应隐藏或禁用 $ {} autnValue
答案 0 :(得分:1)
您可以通过添加一些类
来隐藏链接(define (f1 l k)
(let loop ((ol '())
(l l)
(k k))
(if (null? l)
(flatten ol)
(loop (cons
(for/list ((i (first k)))
(first l))
ol)
(rest l)
(rest k)))))