$(document).ready(function() {
var words = $(‘h1’).text().split(‘ ‘);
var html = ‘’;
$.each(words, function() {
html += ‘‘+this.substring(0,1)+’‘+this.substring(1) + ‘ ‘;
});
$(‘h1’).html(html);
});
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)