当前位置:网站首页>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 -->边栏推荐
- Cann media data processing V2, jpegd interface introduction
- 原生实现.NET5.0+ 自定义日志
- 180.1.连续登录N天(数据库)
- Sword finger offer 11 Minimum number of rotation array
- 独立站卖家如何高效管理复杂的Facebook主页?
- An error is reported when ActiveMQ is started. The 1883 port occupation problem is solved
- SMARCA2抗体研究:Abnova SMARCA2 单克隆抗体方案
- Lumiprobe非荧光炔烃研究丨DBCO NHS 酯
- China gaobang brand story: standing guard for safety, gaobang pays attention to
- 中金财富开户安全吗?开过中金财富的讲一下
猜你喜欢
随机推荐
图形系统——2.view绘制
[cloud resident co creation] shengteng heterogeneous computing architecture cann helps release the surging computing power of hardware
id门禁卡复制到手机_怎么把手机变成门禁卡 手机NFC复制门禁卡图文教程
About Covariance and Correlation(协方差和相关)
匿名函数this指向以及变量提升
数据库对比工具
第2章 处理文件、摄像头和图形用户界面cameo应用
SMARCA2抗体研究:Abnova SMARCA2 单克隆抗体方案
闭包的理解
AOSP清华镜像下载错误解决
A preliminary study of IO model
ANR Application Not Responding
ONEFLOW source code parsing: automatic inference of operator signature
Memory leak
内存抖动
被315点名的流氓下载器,又回来了…
select/poll/epoll
实时Transformer:美团在单图像深度估计上的研究
Three communication skills in software testing
Konva series tutorial 3: Customizing drawings









