window.location.href=""
来源:互联网 发布:管理鞋子软件 编辑:程序博客网 时间:2024/05/20 05:56
人总要为自己的错误买单
当使用window.location.href=”“传参数的时候,比如定义一个
var str; window.location.href="*Controller.do?*&参数=str";
这样传递参数是错误的,只会把str识别成字符串。正确的应该是
window.location.href="*Controller.do?*&参数="+str+"";
上述错误也解释了为什么有的时候window.location.href会造成执行两次的错觉。代码规范真的很重要。
0 0
- window.location.href=""
- top.location.href = window.location.href;
- window.location.href"、"location.href"
- 区别window.location.Reload()和window.location.href=window.location.href
- location.reload(); 与window.location.href = window.location.href;的差别
- window.location.href
- javascript window.location.href
- window.location.href
- window.location.href
- window.location.href兼容性
- window.location.href
- window.location.href
- window.location.href失效
- window.location.href传值
- 【js】window.location.href
- window.location.href
- window.location.href用法
- window.location.href问题
- HTML5必须知道的那些事
- MFC CComboBox用法
- PDF文件有哪些编辑方法
- 第三方支付架构设计之—帐户体系
- 在 Linux 上构建一个 RADIUS 服务器
- window.location.href=""
- [uivier removefromsuperview]之后别忘了设置为nil
- python 实现SVM向量机代码
- windows(4)修改窗口过程函数的机制和论证
- css样式常用整理
- 今天开始学Pattern Recognition and Machine Learning (PRML),章节5.2-5.3,Neural Networks神经网络训练(BP算法)
- 这样说期望薪资肯定没错!
- Linux中的 僵尸进程 和 孤儿进程
- Object-C基础(12)——容器