谷歌(Google)周三宣布了几款新设备,包括经过改进的Chromecast流媒体棒,配有一个远程专用接口、一个新的Nest音频智能扬声器和两款新的智能手机,https://store.google.com/us/product/pixel_5“target=”noopener noreferrer“data component=”externalLink“>像素5
,而href=“https://store.google.com/us/product/chromecast_谷歌电视“target=”nu blank“rel=”noopener noreferrer“data component=”externalLink“>Chromecast现在可购买,以及Nest音频现在可以预订,你得等几个星期才能拿到新手机。
在这个价格区间内,谷歌的智能手机竞争非常激烈,因此,看看谷歌在今年的智能手机市场上是否取得了更大的成功,这将是一件很有趣的事情发布。
Pixel 5尚未提供,但您可以通过下面的链接加入Google Store等待列表。当它正式发布时,它将有黑色或绿色两种颜色,大概在今年年底发布。
像素4a5g还没有上市,但是你可以通过下面的链接加入谷歌商店的等待名单。当它正式上市时,它将有黑色或白色两种颜色,大概在今年年底推出。
仔细观察一下4A5 G像素,您可以看到一个6.2英寸的显示屏,6GB的内存,一个高通Snapdragon 765G处理器,3800mAh电池,1220万像素双像素摄像头,以及一个1600万像素的广角后置摄像头,一个800万像素的前置摄像头和手机背面的指纹传感器。
像素5的显示屏稍小,尺寸为6英寸,谷歌称之为“透射”孔。它包括4000毫安时的电池、8GB的内存,由高通Snapdragon 765G处理器、5G连接以及与Pixel 4A 5G相同的摄像头设置。Pixel 5还具有无线充电和反向无线充电功能,因此您可以使用无线平板为手机充电,或者使用手机背面为配件进行无线充电,比如您的Pixel Bads。
在Pixel 5上多花一点钱的另一个好处是IP68防水防尘等级。
谷歌还对相机进行了改进,增加了肖像模式下的夜视功能。
你觉得如何关于谷歌最新的手机?在评论中告诉我们哪一个对你有吸引力,为什么!
apple iphone 12:价格,发布日期,5g,加上“迷你”惊喜的传闻
a, .nav-item > a, .dropdown-menu a');
allLinks.forEach(link => {
let href = link.getAttribute('href');
if (!href || href === '#' || href === 'javascript:;') return;
// 4. 提取菜单中的核心路径
// 例如 /articles.html -> articles
let cleanHref = href.replace(/^\/|\/$/g, '').replace(/\.(html|php)$/, '').toLowerCase();
let isMatch = false;
// 5. 精确匹配逻辑
if (cleanHref === 'index') {
// 只有当前是首页时,才高亮首页
if (cleanPath === 'index') isMatch = true;
} else {
// 如果当前路径完全等于菜单路径 (如 /articles 匹配 /articles)
// 或者当前路径以 "菜单路径/" 开头 (如 /articles/154 匹配 /articles)
// 或者当前路径包含 "菜单路径." (防某些带点号的特殊情况)
if (cleanPath === cleanHref || cleanPath.startsWith(cleanHref + '/')) {
isMatch = true;
}
}
// 6. 如果匹配成功,加上高亮
if (isMatch) {
link.classList.add('active');
// 如果匹配的是下拉菜单里的子项,顺便把它的父级分类也高亮
const parentNavItem = link.closest('.nav-item');
if (parentNavItem && !parentNavItem.classList.contains('active')) {
const parentLink = parentNavItem.querySelector('a');
if (parentLink) parentLink.classList.add('active');
}
}
});
})();
// ================= 移动端菜单逻辑 =================
const toggle = document.getElementById("menuToggle");
const nav = document.getElementById("navLinks");
// 1. 汉堡按钮:切换主菜单显示/隐藏
if (toggle && nav) {
toggle.addEventListener("click", function (e) {
e.stopPropagation();
const expanded = this.getAttribute("aria-expanded") === "true";
this.setAttribute("aria-expanded", String(!expanded));
nav.classList.toggle("active");
});
}
// 2. 处理下拉子菜单的展开/折叠
if (window.innerWidth <= 768) {
const navItems = document.querySelectorAll(".nav-item");
navItems.forEach((item) => {
const titleLink = item.querySelector("a");
const dropdownMenu = item.querySelector(".dropdown-menu");
const arrowIcon = item.querySelector(".arrow-icon");
if (titleLink && dropdownMenu) {
titleLink.addEventListener("click", function (e) {
e.preventDefault(); // 阻止链接跳转
e.stopPropagation();
// 手风琴效果:收起其他已展开的菜单
navItems.forEach((otherItem) => {
if (otherItem !== item) {
const otherMenu = otherItem.querySelector(".dropdown-menu");
const otherArrow = otherItem.querySelector(".arrow-icon");
if (otherMenu) otherMenu.classList.remove("active");
if (otherArrow) otherArrow.style.transform = "rotate(0)";
}
});
// 切换当前菜单
dropdownMenu.classList.toggle("active");
if (arrowIcon) {
arrowIcon.style.transform = dropdownMenu.classList.contains(
"active",
)
? "rotate(180deg)"
: "rotate(0)";
}
});
}
});
}
// 3. 点击普通菜单项后,自动关闭整个主菜单
if (nav) {
nav.querySelectorAll("a").forEach(function (link) {
if (!link.querySelector(".arrow-icon")) {
link.addEventListener("click", function () {
nav.classList.remove("active");
if (toggle) toggle.setAttribute("aria-expanded", "false");
});
}
});
}
// ================= 返回顶部逻辑 =================
(function () {
const backToTop = document.getElementById("backToTop");
window.addEventListener("scroll", function () {
if (window.scrollY > 300) {
backToTop.classList.add("show");
} else {
backToTop.classList.remove("show");
}
});
backToTop.addEventListener("click", function () {
window.scrollTo({ top: 0, behavior: "smooth" });
});
})();
// 多语言
document.addEventListener("DOMContentLoaded", function() {
let path = window.location.pathname;
let isEn = path.startsWith('/en/');
if (isEn) {
document.cookie = "my_lang=en; path=/; max-age=" + (30 * 24 * 3600);
} else {
document.cookie = "my_lang=zh; path=/; max-age=" + (30 * 24 * 3600);
}
// 【2. 首页记忆】如果访问的是首页(没带 en),但记忆是英文,前端自动跳去英文首页
if (!isEn && (path === '/' || path === '/index.html')) {
if (document.cookie.includes('my_lang=en')) {
window.location.replace('/en' + path);
return;
}
}
// 【3. 菜单不掉线】如果是英文页面,自动给菜单链接加上 /en/
if (isEn) {
document.querySelectorAll('a').forEach(function(link) {
let href = link.getAttribute('href');
// 站内链接,且没带 /en/
if (href && href.startsWith('/') && !href.startsWith('/en/') && !href.startsWith('http')) {
link.setAttribute('href', '/en' + href);
}
});
}
});