jQuery添加额外参数

时间:2017-10-16 15:59:23

标签: javascript jquery html html5

我有以下jQuery代码,我用它来显示或隐藏页面中的特定部分:

<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="false" />
<compatible-screens>
    <screen android:screenDensity="ldpi" android:screenSize="small" />
    <screen android:screenDensity="mdpi" android:screenSize="small" />
    <screen android:screenDensity="hdpi" android:screenSize="small" />
    <screen android:screenDensity="xhdpi" android:screenSize="small" />
    <screen android:screenDensity="xxhdpi" android:screenSize="small" />
    <screen android:screenDensity="xxxhdpi" android:screenSize="small" />
    <screen android:screenDensity="ldpi" android:screenSize="normal" />
    <screen android:screenDensity="mdpi" android:screenSize="normal" />
    <screen android:screenDensity="hdpi" android:screenSize="normal" />
    <screen android:screenDensity="xhdpi" android:screenSize="normal" />
    <screen android:screenDensity="480" android:screenSize="normal" />
    <screen android:screenDensity="560" android:screenSize="normal" />
    <screen android:screenDensity="640" android:screenSize="normal" />
    <screen android:screenDensity="420" android:screenSize="large" />
    <screen android:screenDensity="480" android:screenSize="large" />
    <screen android:screenDensity="560" android:screenSize="large" />
    <screen android:screenDensity="640" android:screenSize="large" />
</compatible-screens>

它确实有效,但在此过程中还会为最终的URL添加额外的参数。

因此,如果我访问http://example.com/ka/?show=success,我会被重定向到http://example.com/ka/?show=success#ka?show=success

有人可以帮忙吗?

0 个答案:

没有答案