From c5a981c658b83e3503edb79c70e8d195a2f7f4e2 Mon Sep 17 00:00:00 2001 From: LengGeng <46020226+LengGeng@users.noreply.github.com> Date: Wed, 8 Jan 2020 23:56:59 +0800 Subject: [PATCH] Update index.html MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 简单增加了文章字数 --- index.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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
-
主题
+
+ + +