首页 > 代码库 > extjs_02_grid(显示本地数据,显示跨域数据)

extjs_02_grid(显示本地数据,显示跨域数据)

1.显示表格

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<title>My JSP 'index.jsp' starting page</title>

<link rel="stylesheet" type="text/css" href=http://www.mamicode.com/"./extjs4.1/resources/css/ext-all.css">>

2.显示本地数据

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<title>My JSP 'index.jsp' starting page</title>

<link rel="stylesheet" type="text/css" href=http://www.mamicode.com/"./extjs4.1/resources/css/ext-all.css">>

3.显示跨域jsonp数据

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<title>My JSP 'index.jsp' starting page</title>

<link rel="stylesheet" type="text/css" href=http://www.mamicode.com/"./extjs4.1/resources/css/ext-all.css">>

extjs_02_grid(显示本地数据,显示跨域数据)