Home > Backend Development > PHP Tutorial > 关与AJAX json html有关问题

关与AJAX json html有关问题

WBOY
Release: 2016-06-13 12:13:22
Original
800 people have browsed it

关与AJAX json html问题
不是编码问题

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