From f2918e7d9c655788c42aae7dcaaef46287fb3724 Mon Sep 17 00:00:00 2001 From: zhangqinhghe Date: Mon, 9 Jun 2014 13:26:04 +0800 Subject: [PATCH] fix demo --- example/index.html | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/example/index.html b/example/index.html index fdebf06..6a93060 100644 --- a/example/index.html +++ b/example/index.html @@ -92,16 +92,23 @@ var alias = $("#aliasText").attr("value"); - console.log("tag1:"+tag1==null); - console.log("tag1:"+tag2==null); - console.log("tag1:"+tag3==null); var dd = []; - dd[0]=tag1 - dd[1]=tag2 - dd[2]=tag3 + if(tag1==""&&tag2==""&&tag3==""){ + + } + else{ + if(tag1 != "") + dd.push(tag1); + if(tag2 != "") + dd.push(tag2); + if(tag3 != "") + dd.push(tag3); + + } + console.log("dd:"+dd); - window.plugins.jPushPlugin.setTagsWithAlias(dd,alias); + window.plugins.jPushPlugin.setTagsWithAlias(dd,""); } catch(exception){ console.log(exception);