- 相關(guān)推薦
php中怎么實(shí)現(xiàn)回刪功能
導(dǎo)語:以下的是百分網(wǎng)小編為大家整理的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>
如何在點(diǎn)擊刪除按鈕的時(shí)候能夠讓input框里的數(shù)字一個(gè)一個(gè)回刪,也就是點(diǎn)擊一下刪除,刪除一個(gè)數(shù)字?
【php中怎么實(shí)現(xiàn)回刪功能】相關(guān)文章:
php中實(shí)現(xiàn)回刪功能實(shí)例03-30
PHP實(shí)現(xiàn)搜索查詢功能的方法技巧08-01
PHP中實(shí)現(xiàn)頁面跳轉(zhuǎn)12-06
PHP中多態(tài)如何實(shí)現(xiàn)03-07
php編程實(shí)現(xiàn)簡單的網(wǎng)頁版計(jì)算器功能03-03