From 2f8ae135bd0f199260b8c780cbdb5675bb8d0e2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E6=B5=A9=E4=B9=90?= <89932980@qq.com> Date: Fri, 18 Mar 2016 11:05:00 +0800 Subject: [PATCH] =?UTF-8?q?updated=20=E9=99=90=E5=88=B6=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E8=BE=93=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/index.html b/index.html index 3c88da1..6dc2f7e 100644 --- a/index.html +++ b/index.html @@ -76,6 +76,14 @@ }else{ $textarea[0].value= name; } + console.log(name); + if('爸爸,老公,儿子,哥哥,弟弟'.indexOf(name)>-1){ + $btns[2].disabled=true; + $btns[3].disabled=false; + }else{ + $btns[2].disabled=false; + $btns[3].disabled=true; + } } }