输入banner图图片脚本导航/分类

javascript不同页面传值的改进版_javascript技巧

其实原理也很简单。同样先通过getAttribute判断type属性,捕捉到按钮。然后在按钮onclick时把i通过url传入子页面。
代码如下:

input1



input2