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)
Statement: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