Thành phần AMP One Tap không còn được dùng nữa. Điều này có nghĩa là các ứng dụng web mới không nên sử dụng thành phần này và các nhà phát triển ứng dụng hiện có nên làm theo
hướng dẫn di chuyển để thực hiện mọi thay đổi cần thiết nhằm tránh tác động tiêu cực đến việc người dùng đăng nhập vào trang web của họ.
Gửi ý kiến phản hồi
Hiển thị tính năng Một lần chạm trong trang AMP
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Để thêm tính năng Một lần chạm vào Accelerated Mobile Pages của bạn,
Thêm Một lần chạm vào Iframe trung gian được lưu trữ bởi trang web của riêng bạn.
Nhúng iframe trung gian thay vì tính năng Một lần chạm, vào trang AMP bằng thành phần <amp-onetap-google>
.
Đặt đoạn mã sau vào bất kỳ trang AMP nào mà bạn muốn Google One nhấn để hiển thị:
<script custom-element="amp-onetap-google" src="https://cdn.ampproject.org/v0/amp-onetap-google-0.1.js" async></script>
<amp-onetap-google
layout="nodisplay"
data-src="https://example.com/onetap_iframe.html">
</amp-onetap-google>
Đặt thuộc tính data-src
thành URI của iframe trung gian.
Gửi ý kiến phản hồi
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0 . Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers . Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2023-10-27 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Thiếu thông tin tôi cần"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Quá phức tạp/quá nhiều bước"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Đã lỗi thời"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Vấn đề về bản dịch"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Vấn đề về mẫu/mã"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Khác"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Dễ hiểu"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Giúp tôi giải quyết được vấn đề"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Khác"
}]
Bạn muốn chia sẻ thêm với chúng tôi?
{"lastModified": "C\u1eadp nh\u1eadt l\u1ea7n g\u1ea7n \u0111\u00e2y nh\u1ea5t: 2023-10-27 UTC."}
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2023-10-27 UTC."]]