前端週報:Vue 新語法糖引爭議;VSCode 現內存泄漏 BUG,官方置若罔聞引不滿;百度應用收集用戶敏感數據被谷歌短暫下架

{"type":"doc","content":[{"type":"blockquote","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"前端週報專注大前端領域內容,以對外文資料的蒐集爲主,幫助開發者瞭解一週前端熱點,分爲新聞熱點、深度閱讀、開源項目 & 工具等欄目。歡迎關注【前端之巔】微信公衆號(ID: frontshow),及時獲取前端週報內容。"}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"前端新聞"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"heading","attrs":{"align":null,"level":4},"content":[{"type":"text","text":"Vue 新語法糖引爭議,網友:魔改 JavaScript,這是想挑戰標準?"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"近日,Vue 作者尤雨溪在社區意見徵求稿(RFC)上提交了一份 Ref 語法糖的提案,引起了開發者們的爭議。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"尤雨溪在該 Ref 語法糖的提案中加入了一個新的功能:在單個文件組件(SFC)中引入了新的 script 標籤寫法,寫法爲 < script setup> 。這種寫法會自動將所有頂級變量聲明公開給模板(template)使用。同時在 < script setup> 中引入了一個基於編譯器的語法糖,用於消除 ref 的 value 屬性,該語法糖在編譯期間自動將語法糖轉爲正常代碼。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"heading","attrs":{"align":null,"level":4},"content":[{"type":"text","text":"VSCode 現內存泄漏 BUG,官方置若罔聞引不滿"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"近日,有開發者提交了一個 VSCode 內存泄露的 issues,該問題導致在某些情況下使用 VSCode 會使內存使用率攀升。令人意外的是,VSCode 官方卻表示不打算解決此問題,引起了社區開發者們的不滿。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"image","attrs":{"src":"https:\/\/static001.infoq.cn\/resource\/image\/40\/f9\/40cccefe8f814f598f5462901e0e20f9.png","alt":null,"title":"","style":[{"key":"width","value":"75%"},{"key":"bordertype","value":"none"}],"href":"","fromPaste":false,"pastePass":false}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"blockquote","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"我們已關閉此問題,因爲我們不打算在可預見的將來解決此問題。您可以在此處找到有關我們決策過程的更多詳細信息。如果您不同意並認爲此問題至關重要:我們很樂意傾聽並重新考慮。"}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"在被開發者們吐槽後, VSCode 的維護者終於出來修復了這一問題:"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"image","attrs":{"src":"https:\/\/static001.infoq.cn\/resource\/image\/e3\/96\/e3ccdbcebc7e0dbe948c4ec11d33d696.png","alt":null,"title":"","style":[{"key":"width","value":"75%"},{"key":"bordertype","value":"none"}],"href":"","fromPaste":false,"pastePass":false}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"link","attrs":{"href":"https:\/\/github.com\/microsoft\/vscode\/issues\/107999","title":"","type":null},"content":[{"type":"text","text":"https:\/\/github.com\/microsoft\/vscode\/issues\/107999"}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"heading","attrs":{"align":null,"level":4},"content":[{"type":"text","text":"Linux 之父:如果 M1 Mac 能運行 Linux ,我很願意使用"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}}]}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章