今天再看淘寶的頁面中發現很多div都具有spm這個自定義屬性,而且在url中也帶有這個參數,於是就好奇這個東西到底有什么用呢?於是就百度Google找了幾乎所有的內容,最后找出了幾篇有用的解釋貼在下面,供大家參考。
官方解釋:https://open.taobao.com/doc2/detail.htm?articleId=959&docType=1&treeId=null
其他一些好的參考解釋:
https://www.biaodianfu.com/spm.html
http://www.xiaoxiansheng.com/html/talk/detail/1431?type=Reply&categoryId=319
http://blog.sina.com.cn/s/blog_687194cd01019352.html
http://blog.sina.com.cn/s/blog_687194cd0101c2v7.html
一個在github上發現的工具:
移除蝦米、淘寶和天貓網址中的 spm 參數(包括地址欄和頁面中的鏈接):https://gist.github.com/ambar/9706385