<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Geolocation on 知识铺的博客</title>
    <link>https://index.zshipu.com/geek/tags/Geolocation/</link>
    <description>Recent content in Geolocation on 知识铺的博客</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh-CN</language>
    <lastBuildDate>Thu, 20 Aug 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://index.zshipu.com/geek/tags/Geolocation/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Chrome 144 引入 &lt;geolocation&gt; 元素，网页定位代码大幅简化</title>
      <link>https://index.zshipu.com/geek/post/20260820/Chrome-144-%E5%BC%95%E5%85%A5-geolocation-%E5%85%83%E7%B4%A0%E7%BD%91%E9%A1%B5%E5%AE%9A%E4%BD%8D%E4%BB%A3%E7%A0%81%E5%A4%A7%E5%B9%85%E7%AE%80%E5%8C%96/</link>
      <pubDate>Thu, 20 Aug 2026 00:00:00 +0000</pubDate>
      <guid>https://index.zshipu.com/geek/post/20260820/Chrome-144-%E5%BC%95%E5%85%A5-geolocation-%E5%85%83%E7%B4%A0%E7%BD%91%E9%A1%B5%E5%AE%9A%E4%BD%8D%E4%BB%A3%E7%A0%81%E5%A4%A7%E5%B9%85%E7%AE%80%E5%8C%96/</guid>
      <description>事件概述 Chrome 144 将原生支持一个新的 HTML 元素 &amp;lt;geolocation&amp;gt;，用于获取用户地理位置。据开发者 Leo Baniak 在 dev.to 上的文章介绍，这个元素最初是作为通用的 &amp;lt;permission&amp;gt; 元素设计的，后来才被专门化为地理位置功能。 设计动机：简化定位代码 过去，网页要获取用户位置，必须调用 navigator.geolocation.getCurrentPosition(...) 这类 JavaScript API，并处理回调、</description>
    </item>
  </channel>
</rss>
