Jquery mobile 如何从jQuery Mobile page transition加载的页面中的查询字符串中获取参数值

Jquery mobile 如何从jQuery Mobile page transition加载的页面中的查询字符串中获取参数值,jquery-mobile,Jquery Mobile,我有一个页面,比如index.html,它使用jQuery Mobile的列表视图。listview中的每个项目都会引用同一个页面(log.html),并附加一个查询字符串参数,因此href为log.html?id=1、log.html?id=2等等。我正在尝试获取“id”参数的值,但不知道如何获取。如果我直接从brower访问log.html,我可以通过解析location.search来获得它,但是如果页面是通过listview中的页面转换加载的,location.search是空的。按f1

我有一个页面,比如index.html,它使用jQuery Mobile的列表视图。listview中的每个项目都会引用同一个页面(log.html),并附加一个查询字符串参数,因此href为log.html?id=1、log.html?id=2等等。我正在尝试获取“id”参数的值,但不知道如何获取。如果我直接从brower访问log.html,我可以通过解析location.search来获得它,但是如果页面是通过listview中的页面转换加载的,location.search是空的。

按f12键,然后转到控制台并读取上面提到的错误。@user3217843那里没有错误