如何使用 React 或 Gatsby 獲取或設定查詢字串(不使用檔案或視窗物件):
https://link.com/?color=#fff&theme=light
uj5u.com熱心網友回復:
您可以將此模塊用于react:https :
//github.com/pbeshai/use-query-params
對于gatsby,你可以使用這個插件:https :
//www.gatsbyjs.com/plugins/gatsby-plugin-use-query-params/
它會用QueryParamProvider
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/364261.html
