注册 登录
编程论坛 jQuery论坛

json问题

yaopeng0418 发布于 2010-10-22 12:30, 1504 次点击
getJSON问题
$(document).ready(function(){
                     
                    $.getJSON("conn2.asp",function(json){
                                             
                                //var text=unescape(data);            
                                if(unescape(json["cont"])="ok")
                                {
                                box1();
                                sm();            
                                }
                                else
                                {box2();   
                                }
                                    });  
                           
                           });
老说$.getJSON这一行有错误,请教
5 回复
#2
stonylxl2010-10-28 19:12
打扰了,目前sina正在招聘前端高级开发工程师,javascript、html、CSS有兴趣的都可以去试试,有意者可以发简历到job@vip.,欢迎加入哈~
ps:也同时招聘flash工程师~
#3
hugeannex2010-11-12 13:22
if(unescape(json.cont)="ok")
#4
w2813143422011-04-19 09:06
if(unescape(json["cont"])="ok")
     比较值不是"=="吗?
1