- 相關(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實(shí)現(xiàn)搜索查詢功能的方法技巧08-01
PHP中實(shí)現(xiàn)頁(yè)面跳轉(zhuǎn)12-06
PHP中多態(tài)如何實(shí)現(xiàn)03-07
php查詢mysql的實(shí)例03-29