jQuery Mobile:将数据从一个页面发送到另一个页面
jqueryjavascriptweb developmentfront end scripts更新于 2025/4/13 15:08:17
为了传递值,假设我们的 <a> 如下,页面为 new.html
<a href="new.html?structure='123'">Structure</a>
JS 将是:
$( document ).on( "pageinit", "#new", function( event ) {
var myParam = $(this).data("url").split("?")[1];
myParam = parameters.replace("structure=","");
alert(myParam);
});
相关文章
有用资源
javascript 参考教程 - 该教程包含有关 javascript 的更多信息:https://www.cainiaomax.com/javascript/

