当前位置:网站首页>Baidu time factor addition
Baidu time factor addition
2022-06-28 18:45:00 【Pu~】
<!-- Baidu statistics -->
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?b9c8f8d8d7f9d8f8d7f9d8f8d7f9d8f8";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
console.log({$article});
</script>
<php>
$content = str_replace('\"', '', $article['content']);
preg_match_all('/<img[^>]*src\s?=\s?[\'|"]([^\'|"]*)[\'|"]/is', $content, $picarr);
if(!empty($picarr[1][0])){
$src= $picarr[1][0];
}else{
$src='';
}
</php>
<script type="application/ld+json">
{
"@context": "https://ziyuan.baidu.com/contexts/cambrian.jsonld",
"@id": "https://{$_SERVER['SERVER_NAME']}/ask/{$article.id}.html",
"title":"{$article.title}",
"images": ["https://oss.kaoersi.com/{$src}"],
"description":"{$article.description}",
"pubDate": "{$article.create_time|date='Y-m-d\TH:i:s'}",
"upDate":"{$article.create_time|date='Y-m-d\TH:i:s'}",
"IrDate":"{$article.answer_time|date='Y-m-d\TH:i:s'}",
}
</script>
<!-- Baidu statistics -->边栏推荐
猜你喜欢
随机推荐
Shanghai Pudong Development Bank Software Test interview real question
【Unity3D】发射(RayCast)物理射线(Ray)
konva系列教程3:自定义图形
从知名软件提取出的神器,吊打一众付费
China gaobang brand story: standing guard for safety, gaobang pays attention to
ANR Application Not Responding
记一次Emotet木马处理案例
Database Experiment 7 integrity constraints
sqrt()函数的详解和用法「建议收藏」
Go, begin, end, for, after, instead of
使用.NetCore自带的后台作业,出入队简单模拟生产者消费者处理请求响应的数据
An in-depth analysis of the election mechanism in kubernetes
匿名函数变量问题
Openfire 3.8.2集群配置
解析机器人主持教学的实践发展
PMP怎么补考?补考费用是多少?
数据库对比工具
PCB线路板布局和布线都有哪些设计要求?
ONEFLOW source code parsing: automatic inference of operator signature
curl: (56) Recv failure: Connection reset by peer









