2017-10-19 55 views

回答

0

我使用以下,它完美的作品。在平板电脑上不会更改为AMP,因为我的网站响应良好。

<script type="text/javascript"> 
<!-- 
if (screen.width <= 699) { 
document.location = "https://example.com/amp"; 
} 
//--> 
</script> 
+0

AMP是关于更快地从Google缓存中提供服务的网页。这个解决方案完全相反。 –