AMP Sample

QUERY_PARAMを使ってdocument内にあるaタグのhref値を動的に生成するsample

How to dynamically generate the href value of a tag in document using QUERY_PARAM depending on url.param

確認方法

add url parameters of "data=hogehoge"
push link and then confirm url that state parameters "data=hogehoge"

ex: http://kenjimorita.jp/sample/amp_queryparam?data=hogehoge

Also be sure to empty if you do not pass parameters


Go


back to blog