Uncaught ReferenceError: showdiv is not defined. 汗...
2017-01-13
注意把下面<a href="#" id="strHref" class="btn-slide">展开</a> 改成<a href="javascript: showdiv()" id="strHref" class="btn-slide">展开</a> <!--点击按钮-->
var oHpn = document.getElementById("hpn");
var oBtn = document.getElementById("strHref");
var bStop = true;
oBtn.onclick = function() {if (bStop) {oHpn.style.display = "block";oBtn.innerHTML = "更多选项-";} else{oHpn.style.display = "none";oBtn.innerText = "更多选项+";}bStop = !bStop;};};
var oBtn = document.getElementById("strHref");
var bStop = true;
oBtn.onclick = function() {if (bStop) {oHpn.style.display = "block";oBtn.innerHTML = "更多选项-";} else{oHpn.style.display = "none";oBtn.innerText = "更多选项+";}bStop = !bStop;};};