Why does the data returned by ajax prompt object?

WBOY
Release: 2016-09-29 09:19:04
Original
983 people have browsed it

After running, why does the prompt result show [object Object], [object Object] instead of specific data?
This result should be like this [{title: "3333333333333"}, {title: "3333333333333"}]
Then I tried it againalert(obj.title) It prompts undefined. Why is this?

<code>$res=$xiao->field("title")->select();
$this->ajaxReturn($res);


ajax("{:U('zhuye/zhuye')}",oV1,function(str){
   var obj = eval("("+str+")");
   alert(obj);
});</code>
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template