loading
0.06D
V2EX  ›  问与答

vb传值问题

  •  
  •   loading · Nov 22, 2012 · 3102 views
    This topic created in 4945 days ago, the information mentioned may be changed or developed.
    其实我是在写flash的,感觉和vb差不多。

    有两个label,id分别是a1,a2
    我通过json获得一个这样的数据
    s[0].num=2
    s[0].txt="world"
    s[1].num=1
    s[1].txt="hello"

    我知道的就是
    a1.text=s[1].txt这样子传的值

    jQuery我是这样写的(each就不写了)
    sel="a"+s[i]num;
    $(sel).html(s[i].txt);

    想vb那样是怎么给的呢,当然actionscript更好
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5393 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 09:00 · PVG 17:00 · LAX 02:00 · JFK 05:00
    ♥ Do have faith in what you're doing.