How to compress URL parameters

后端 未结 12 1503
孤城傲影
孤城傲影 2020-12-04 11:16

Say I have a single-page application that uses a third party API for content. The app’s logic is in-browser only, and there is no backend I can write to.

To allow de

12条回答
  •  感情败类
    2020-12-04 11:57

    Small tip: Both parseInt and Number#toString support radix arguments. Try using a radix of 36 to encode numbers (or indexes into lists) in URLs.

提交回复
热议问题