<input id='qingshuo' type='text' placeholder='请输入您要咨询的问题……' />
<script>
$(function(){
    var input_hz=0;
    var input_hz1=document.getElementById("qingshuo").placeholder;
    function type(){
        if(input_hz==input_hz1.length+1){
            input_hz=0;
        }
        document.getElementById("qingshuo").placeholder = input_hz1.substring(0,input_hz++);
    }
    setInterval(type, 300); 
})
</script>

表单提示字符如何一个一个的出来 随笔 第1张

表单提示字符如何一个一个的出来 随笔 第2张

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

效果图

 

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄