Home > Backend Development > PHP Tutorial > php中如何实现回删功能

php中如何实现回删功能

WBOY
Release: 2016-06-13 12:00:00
Original
809 people have browsed it

php中怎么实现回删功能
function del(){
var input=document.getElementsByName('inp')[0].value;
alert(input.constructor);
}







1 2 3 确认
4 5 6 删除
7 8 9 重置

如何在点击删除按钮的时候能够让input框里的数字一个一个回删,也就是点击一下删除,删除一个数字?
------解决方案--------------------
字符串截取:str.substr(0,str.length-1)
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template