ajax求帮助
<script type="text/javascript">
$(function(){
$("#typename").change(function(){
alert(777);
$.ajax({
url:"demo",
type:"GET",
dataType:'josn',
data:{"username":"baixiao"},
function(data){
alert(999);
}
});
});
});
</script>
<servlet>
<servlet-name>demo</servlet-name>
<servlet-class>com.sylc.kq.cmd.SelMenu</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>demo</servlet-name>
<url-pattern>/demo</url-pattern>
</servlet-mapping>
package com.sylc.kq.cmd;
import javax.servlet.http.HttpServlet;
public class SelMenu extends HttpServlet{
public SelMenu(){
System.out.println("SelMenu被调用。。。。");
}
}