jquery间传值
来源:互联网 发布:java 调用目标异常 编辑:程序博客网 时间:2024/05/20 18:00
如果需要html间来传递参数,不防这样用,例:
在传值与接收值的页面引入
<script type="text/javascript" src="js/jquery.params.js"></script>
如此用:
传值页面:
location.href="top.html?user_name=" +user_name+"&user_id="+user_id;
接收值页面:
<script type="text/javascript">
$(function () {
var user_name=$.query.get("user_name");
var user_id = $.query.get("user_id");
});
</script>
0 0
- jquery间传值
- Jquery 页面间传值
- JQuery
- JQuery
- JQuery
- JQuery
- JQuery
- JQuery
- JQuery
- JQuery
- JQuery
- JQuery
- JQuery
- JQuery
- JQuery
- JQUERY
- jquery
- jQuery
- difx rpc unavailable
- 关于rpc简介、原理、实例-缘于difx
- fedora automatic compile autotools usage
- ubuntu install GTK-GNOME development environment
- verycd download materials
- jquery间传值
- fedora install gnome && gtk development enviroment
- android模拟器获取ROOT权限!!!安卓
- enlarge the space of linux based on vmware
- xml file too big to import to wordpress website
- How to read a book
- 海外业务平台模块
- setting virtualbox share folder in windows7 system
- HDU-2501 Tiling_easy version 递推