Amp html 在Firefox上,AMP get a error:;window.AMP未定义;
我开始了一个新项目,包括amp Firefox系统性地报告此错误: 类型错误:window.AMP未定义 我遵循了入门步骤。以下是索引的head标记的外观:Amp html 在Firefox上,AMP get a error:;window.AMP未定义;,amp-html,Amp Html,我开始了一个新项目,包括amp Firefox系统性地报告此错误: 类型错误:window.AMP未定义 我遵循了入门步骤。以下是索引的head标记的外观: <html amp lang="fr"> <head> <meta charset="utf-8"> <title>my title</title> <link rel="canonical" href="http://example.com/non-amp_in
<html amp lang="fr">
<head>
<meta charset="utf-8">
<title>my title</title>
<link rel="canonical" href="http://example.com/non-amp_index.php" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="description" content="description">
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta property="og:url" content="http://example.com/home" />
<meta property="og:type" content="article" />
<meta property="og:title" content="title" />
<meta property="og:description" content="description" />
<meta property="og:image" content="sharedImage" />
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@client">
<meta name="twitter:title" content="title">
<meta name="twitter:description" content="description">
<meta name="twitter:image" content="sharedImage">
<style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style>
<noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
<!-- AMP properties -->
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "NewsArticle",
"mainEntityOfPage":{
"@type":"WebPage",
"@id":"http://example.com"
},
"headline": "<?=$copyDeck['title'] ?>",
"image": {
"@type": "ImageObject",
"url": "http://example.com/cover.jpg",
"height": 800,
"width": 800
},
"datePublished": "2016-09-02T08:00:00+08:00",
"dateModified": "2016-09-02T09:20:00+08:00",
"author": {
"@type": "Organization",
"name": "Client"
},
"publisher": {
"@type": "Organization",
"name": "Client",
"logo": {
"@type": "ImageObject",
"url": "https://example.com/logo.png",
"width": 320,
"height": 120
}
},
"description": "description"
}
</script>
<!-- Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-ANALYTICS', 'auto');
ga('send', 'pageview');
</script>
<!-- comScore -->
<script type="text/javascript">
// <![CDATA[
function udm_(a){var b="comScore=",c=document,d=c.cookie,e="",f="indexOf",g="substring",h="length",i=2048,j,k="&ns_",l="&",m,n,o,p,q=window,r=q.encodeURIComponent||escape;if(d[f](b)+1)for(o=0,n=d.split(";"),p=n[h];o<p;o++)m=n[o][f](b),m+1&&(e=l+unescape(n[o][g](m+b[h])));a+=k+"_t="+ +(new Date)+k+"c="+(c.characterSet||c.defaultCharset||"")+"&c8="+r(c.title)+e+"&c7="+r(c.URL)+"&c9="+r(c.referrer),a[h]>i&&a[f](l)>0&&(j=a[g](0,i-8).lastIndexOf(l),a=(a[g](0,j)+k+"cut="+r(a[g](j+1)))[g](0,i)),c.images?(m=new Image,q.ns_p||(ns_p=m),m.src=a):c.write("<","p","><",'img src="',a,'" height="1" width="1" alt="*"',"><","/p",">")}
udm_('http://b.scorecardresearch.com/p?c1=2&c2=ID&ns_site=cmf-fmc&application_id=ID&cmf_ev=start');
// ]]>
</script>
<noscript><p><img src="http://b.scorecardresearch.com/p?c1=2&c2=ID" height="1" width="1" alt="*"></p></noscript>
<!-- End comScore Inline Tag -->
<!-- Begin comScore Inline Tag 1.1111.15 -->
<script type="text/javascript" language="JavaScript1.3" src="http://b.scorecardresearch.com/c2/ID/cs.js"></script>
<!-- End comScore Inline Tag -->
<script async src="https://cdn.ampproject.org/v0.js"></script>
</head>
我的头衔
body{-webkit动画:-amp start 8s steps(1,end)0s1 normal tweet;-moz动画:-amp start 8s steps(1,end)0s1 normal tweet;-ms动画:-amp start 8s steps(1,end)0s1 normal tweet}@-webkit关键帧-amp start{从{可见性:隐藏}到{可见性:可见}}@-moz关键帧-amp start{from{visibility:hidden}to{visibility:visible}-ms关键帧-amp start{from{visibility:hidden}to{visibility:visible}}-o-关键帧-amp start{from{visibility:hidden}to{visibility:visible}@keyframes amp start{from{visibility:hidden}to{visibility:visible}}}
body{-webkit动画:无;-moz动画:无;-ms动画:无;动画:无}
{
“@context”:”http://schema.org",
“@type”:“新闻文章”,
“页面维护”:{
“@type”:“网页”,
“@id”:”http://example.com"
},
“标题”:“,
“图像”:{
“@type”:“ImageObject”,
“url”:”http://example.com/cover.jpg",
“高度”:800,
“宽度”:800
},
“发布日期”:“2016-09-02T08:00:00+08:00”,
“修改日期”:“2016-09-02T09:20:00+08:00”,
“作者”:{
“@type”:“组织”,
“名称”:“客户”
},
“出版商”:{
“@type”:“组织”,
“名称”:“客户”,
“徽标”:{
“@type”:“ImageObject”,
“url”:”https://example.com/logo.png",
“宽度”:320,
“高度”:120
}
},
“说明”:“说明”
}
(函数(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]| |函数(){
(i[r].q=i[r].q | |[]).push(参数)},i[r].l=1*新日期();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(窗口、文档、“脚本”和https://www.google-analytics.com/analytics.js","ga",;
ga(“创建”、“UA-ANALYTICS”、“自动”);
ga(‘发送’、‘页面浏览’);
//i&&a[f](l)>0&&(j=a[g](0,i-8)。lastIndexOf(l),a=(a[g](0,j)+k+“cut=“+r(a[g](j+1)))[g](0,i)),c.images?(m=新图像,q.ns|p|(ns|p=m),m.src=a):c.write(“”)
乌鲁木齐http://b.scorecardresearch.com/p?c1=2&c2=ID&ns_site=cmf-fmc和应用程序(id=id&cmf(ev=start));
// ]]>
尝试将这两个分析脚本替换为它们的
尝试将这两个分析脚本替换为它们的
在AMP页面中不能有任何用户编写的javascript。在AMP页面中不能有任何用户编写的javascript。