javascript显示错误 对象不支持此属性或方法

2025-01-02 04:19:36
推荐回答(5个)
回答1:

给你个简单的Javascript例子。仔细看看啊!
<%@ page language="java" contentType="text/html; charset=gb2312"
pageEncoding="gb2312"%>
<%@ page import="java.sql.*" %>


<%
Connection conn=null;
Statement stmt=null;
ResultSet rs=null,rs1=null,rs2=null;
String sql;
int count;
int count2;
String drivername="com.mysql.jdbc.Driver";
String url="jdbc:mysql://localhost/selectbiao";
try{
Class.forName(drivername);
conn=DriverManager.getConnection(url,"root","root");
stmt=conn.createStatement();
sql="select * from city order by locationid asc";
rs=stmt.executeQuery(sql);
}catch(SQLException e){
System.out.println(e.getMessage());
}
%>

<%
sql="select * from village order by districtid asc";
rs2=stmt.executeQuery(sql);
%>




分类:




回答2:

粗心了吧?table标签怎么会有action属性呢?
另外还要把表单控件包在form里才对

回答3:

这人真是基础都没有,乱七八糟

回答4:

怎么说呢,你看一下这个getELementById。应该是getElementById

回答5:

是哦,你这都没有

标签,怎么会有form1呢