diff --git a/index.html b/index.html index 11b6d3034..5b66d9cad 100644 --- a/index.html +++ b/index.html @@ -184,12 +184,12 @@ } function 生成文章(){ - 主题 = $('input').value + let 主题 = $('#主题').value, 字数 = $('#字数').value; let 文章 = [] for(let 空 in 主题){ let 章节 = ""; let 章节长度 = 0; - while( 章节长度 < 6000 ){ + while( 章节长度 < 字数 ){ let 随机数 = 随便取一个数(); if(随机数 < 5 && 章节.length > 200){ 章节 = 增加段落(章节); @@ -214,6 +214,9 @@
bullshit generator
-
主题
+
+ + +