在js里面处理作为参数的url使用encodeURIComponent转义,如:window.location.href = "abc.html?id=123&url="+encodeURIComponent("http://xxx.com");
输出调用结果?你怎么用的?没有获取到对应参数返回null,你不能调用返回值的任何方法,因为是null
直接alert输出没有问题的
网页加载完毕后直接调用该函数就行/**