Permalink
Browse files

doc eval use

  • Loading branch information...
1 parent fd4fbbe commit 8e1c409bab198ace0d0fcb1e41837535c5d9f354 @Ayms committed Feb 13, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 README.md
View
@@ -92,6 +92,13 @@ Output format (see more details below) : nike_shoes=(Array containing the gadget
So to use it you can do :
xscript.onload=function() {
+ var res=eval('nike_shoes');
+ if (res.length>0) {
+ ...
+ }
+
+ or
+
eval('nike_shoes');
if (nike_shoes.length>0) {
...

0 comments on commit 8e1c409

Please sign in to comment.