CHINAREN classmates' number of words inverse

zhaozj2021-02-16  64

In the final quick reply of Chianren classmates, it will find that there is a function of entering the number of words, specifying 500 words. You press the key, you can type how many words can you type, actually with JScript, a page Seeing the code, but the idea is quite fresh, you can use it in the program.

function textCounter (field, maxlimit) {if (field.value.length> maxlimit) field.value = field.value.substring (0, maxlimit); else document.WRITEMSGTXT.remLen.value = maxlimit - field.value.length; }

Surplus word:

转载请注明原文地址:https://www.9cbs.com/read-12760.html

New Post(0)