Javascript jQuery-to:如何传递额外的GET参数?

Javascript jQuery-to:如何传递额外的GET参数?,javascript,jquery,prettyphoto,Javascript,Jquery,Prettyphoto,在page.html中,我无法访问myVar。帮忙 发现了类似的问题,但也没有答案 找到解决方案:要传递的url参数应在“iframe”变量之前。例如: $('a[rel*=prettyPhoto]').prettyPhoto({ keyboard_shortcuts: false, social_tools: false, deeplinking: false }); $('a[rel*=prettyPhoto]').prettyPh

在page.html中,我无法访问myVar。帮忙

  • 发现了类似的问题,但也没有答案

找到解决方案:要传递的url参数应在“iframe”变量之前。例如:

$('a[rel*=prettyPhoto]').prettyPhoto({
        keyboard_shortcuts: false,
        social_tools: false,
        deeplinking: false
    });
$('a[rel*=prettyPhoto]').prettyPhoto({
        keyboard_shortcuts: false,
        social_tools: false,
        deeplinking: false
    });
page.html?myVar=text&iframe=true&width=700&height=100%