Home  >  Article  >  Backend Development  >  关与AJAX json html问题

关与AJAX json html问题

WBOY
WBOYOriginal
2016-06-23 13:42:00799browse

不是编码问题

function getPassWord() {
$.jBox("get:__APP__/member/common/getpassword/", {          //getpassword .html 
title: "找回密码",
width: "auto",
buttons: {'发送邮件':'jfun_dogetpass()','关闭': true }
});   
}

getpassword.html内容:












用户名/邮箱:
请输入您在{$glo.web_name}的用户名或邮件,我们会向您的邮箱发送一个重置密码的链接
请您按邮件中提示重置密码。



执行上面的函数得到的是:


可能是json 问题
要怎么把它变成正常网页


回复讨论(解决方案)

js 代码:
变量 = eval('(' + 返回串 +')')

我记得我出现这种情况都是某个标签没有闭合导致的 好好查下

试试在php端使用 
json_decode 或 json_encode

Statement:
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