From 9d8d58ed3c024b117e3ff97f9015e44c0bf19561 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E6=B5=A9=E4=B9=90?= <89932980@qq.com> Date: Thu, 17 Mar 2016 14:57:36 +0800 Subject: [PATCH] =?UTF-8?q?updated=20=E7=95=8C=E9=9D=A2=E4=BD=93=E9=AA=8C?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index ea82acd..3c88da1 100644 --- a/index.html +++ b/index.html @@ -97,10 +97,11 @@ var index = value.lastIndexOf('的'); index = Math.max(0,index); $textarea[0].value = value.substr(0,index); + $textarea[1].value = ''; } $buttons[2].onclick = function(){ - $textarea[0].value = ''; + $textarea[1].value = $textarea[0].value = ''; }