请教JS参数传递。 javascriptfunctionjsjqeruy 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 show_window({ "url": "xxxxx" "typeL": "xxxxxxx" "show_content": "xxxxxxxx"}) obj = new Object();obj.url = "111";obj.typeL = "222";obj.show_content = "333";show_window(obj);function show_window(a) { var url = a.url; var typeL = a.typeL; var show_content = a.show_content; } 是不是写反了function show_window(a) { a.url = url; a.typeL = typeL; a.show_content = show_content; } <!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title></title> <script type="text/javascript"> function show_window(a) { var url = a.url; var typeL = a.typeL; var show_content = a.show_content; //弹出 alert(url); alert(typeL); alert(show_content); } function t() { var a = { url: "aaaa", typeL: "bbb", show_content: "ccc" } show_window(a); } </script></head><body onload="t()"></body></html> js中<<是神马 关于js操作table的tr td 找到答案就结贴 快逸报表分页表头问题 js 时间格式 js密码正则表达式的问题 document.URL 和 location.href 有什么区别 javascript 读取 xml 问题 数据库树...能执行增删除及改变树结构的树 如何把JS中的变量传到ASP中,在同一页面中??? 我怎么能让我的FUNCTION只在需要时才执行呢??? sencha CMD压缩后的js文件过大产生的问题 jq计算器问题。急
"url": "xxxxx"
"typeL": "xxxxxxx"
"show_content": "xxxxxxxx"
})
obj = new Object();
obj.url = "111";
obj.typeL = "222";
obj.show_content = "333";
show_window(obj);
function show_window(a) {
var url = a.url;
var typeL = a.typeL;
var show_content = a.show_content;
}
function show_window(a) {
a.url = url;
a.typeL = typeL;
a.show_content = show_content;
}
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
<script type="text/javascript">
function show_window(a) {
var url = a.url;
var typeL = a.typeL;
var show_content = a.show_content; //弹出
alert(url);
alert(typeL);
alert(show_content);
} function t()
{
var a = {
url: "aaaa",
typeL: "bbb",
show_content: "ccc"
} show_window(a);
}
</script>
</head>
<body onload="t()"></body>
</html>