在服务器端,假如有一个按钮想要调用客户端脚本,就用 button1.attribute.add("onclick","return showItems();") 转载于:https://www.cnblogs.com/leeon/archive/2004/12/15/77649.html