如何實(shí)現(xiàn)點(diǎn)擊后,將內(nèi)容設(shè)置到數(shù)據(jù)框
td.onclick=function(){
? ?? ??? ??? ??? ?//實(shí)現(xiàn)點(diǎn)擊后,將內(nèi)容設(shè)置到數(shù)據(jù)框中
? ?? ??? ??? ??? ?document.getElementById("keyword").value = td.value;
? ?? ??? ??? ?};
? ?? ??? ????
2019-04-21
td.onclick?=?function(){ ???document.onmouseup=function(e){ ?????var?info?=?e.target.innerHTML; ?????document.getElementById("keyword").value?=?info; ????}; ?};2018-09-09
document.getElementById("keyword").value = td.innerHTML;