- 相關(guān)推薦
php中實(shí)現(xiàn)回刪功能實(shí)例
導(dǎo)語(yǔ):如何在點(diǎn)擊刪除按鈕的時(shí)候能夠讓input框里的數(shù)字一個(gè)一個(gè)回刪,也就是點(diǎn)擊一下刪除,刪除一個(gè)數(shù)字?下面的是YJBYS小編為大家搜集的php中實(shí)現(xiàn)回刪功能實(shí)例,希望對(duì)你有所幫助。
function del(){
var input=document.getElementsByName('inp')[0].value;
alert(input.constructor);
}
</script>
<table>
<tr><td onclick="inpu(1)">1</td><td onclick="inpu(2)">2</td><td onclick="inpu(3)">3</td><td onclick="ente()">確認(rèn)</td></tr>
<tr><td onclick="inpu(4)">4</td><td onclick="inpu(5)">5</td><td onclick="inpu(6)">6</td><td onclick="del()">刪除</td></tr>
<tr><td onclick="inpu(7)">7</td><td onclick="inpu(8)">8</td><td onclick="inpu(9)">9</td><td>重置</td></tr>
</table>
【php中實(shí)現(xiàn)回刪功能實(shí)例】相關(guān)文章:
php+mysql結(jié)合Ajax實(shí)現(xiàn)點(diǎn)贊功能完整實(shí)例07-20
php實(shí)現(xiàn)偽靜態(tài)的方法實(shí)例09-25
PHP實(shí)現(xiàn)RSA加密類的實(shí)例解析08-23
PHP5中實(shí)現(xiàn)多態(tài)的兩種方法實(shí)例07-29