jquery display string character by character
问题 I want to create a jquery script that can write down a string inside a div character by character as if somebody would be typing it as the user is looking at the page. I assume this would work with a recursive function using settimeout. Help me with this please. Thanks. 回答1: You can write one yourself. Make use of setInterval() Store a message in the array and pop the words / characters one by one Clear the interval when you're done DEMO jQuery: // Consturct a message, transform it to an