本窗口传递数据-JavaScript值传递

本窗口传递数据取值方式1:获得表单元素的值/设值 function test(value) { window.alert(value); }取值方式2:获得非表单元素的值/设值测试内容取值:document.getElementById(“search”).innerText;设置: document.getElementById(“search”).innerText = “内容”;注意innerText和innerHTML的区别
ppt 文件大小:121.5KB