$.ajax({
type:'POST',
url: 'hhWebsiteInfoController.do?website-getDt',
dataType:'json',
data:'',
success:function(json){
alert(1);
dts = json.attributes.dts;
$("#news").empty();
quanju=dts;
if(typeof(dts)!=undefined){
for(var i=0;i";
var b = "
";
// var d = "";
var c = a+b;
$("#news").append(c);
}
}}
});
(document).on('click',"p.test2",function() {
layer.open({
type: 1,
area: ['600px', '360px'],
shadeClose: true, //点击遮罩关闭"+quanju[dataIndex].summary+"
content: ''+quanju[$(this).attr('dataIndex')].content+'
.attr('dataIndex')].pic2+')
'
});
});
content字段是blob类型的 取出是byte[]类型的显示这样113,119,101,114,32,49,50,51,52,53,32,32,-41,-19,-63,-53
怎么转成字符串显示,在后台转吗?
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
这个需要后台提供服务的接口负责的事情~~
使用
registerJsonValueProcessor来执行输出内容的转换