js 与jquery 同时绑定一个ID onclink事件
事例代码: <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>shortLink</title> </head> <script src="http://localhost:8090/short_link/js/jquery/jquery-1.8.3.min.js"></script>//引入jquery框架 <script type="text/javascript"> $(document).ready(function(){ $("#test").click(function(){ alert("你好"); }); $("#test").click(function(){ alert("你好2"); }); }); function dd(){ alert("dd!"); } function dd(){ alert("dd2"); } function aa(){ alert("aa!"); } <