var num = 8;for (var i = 0; i < num; i++) { $('ul').append('<li></li>');}; 转载于:https://www.cnblogs.com/ghfjj/p/6676567.html