jQuery easyUI中的EasyLoader的使用,easyuieasyloader

來源:互聯網
上載者:User

jQuery easyUI中的EasyLoader的使用,easyuieasyloader
jQuery easyUI中的EasyLoader的使用下面用一個簡單的案例來介紹一下EasyLoader的使用:1、首先建立一個web項目2、到官網下載jQuery easyUI外掛程式,並將其放到項目對應的包下:

3、將建立的項目部署到tomcat上或者是其他web伺服器上
案例的實現:


案例相關代碼:EasyLoader.jsp

<%@ page language="java" contentType="text/html; charset=utf-8"    pageEncoding="utf-8"%>    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Insert title here</title><link rel="stylesheet" type="text/css" href="<c:url value='/js/jquery-easyui-1.4.1/themes/gray/easyui.css'/>"/>    <link rel="stylesheet" type="text/css" href="<c:url value='/js/jquery-easyui-1.4.1/themes/icon.css'/>"/>    <link rel="stylesheet" type="text/css" href="<c:url value='/js/jquery-easyui-1.4.1/demo/demo.css'/>"/>    <link rel="stylesheet" type="text/css" href="<c:url value='/js/jquery-easyui-1.4.1/themes/default/easyui.css'/>"/><script type="text/javascript" src="<c:url value='/js/jquery-easyui-1.4.1/jquery.min.js'/>"></script><script type="text/javascript" src="<c:url value='/js/jquery-easyui-1.4.1/jquery.easyui.min.js'/>"></script><script type="text/javascript" src="<c:url value='/js/jquery-easyui-1.4.1/easyloader.js'/>"></script><script>function load1(){using('calendar',function(){$('#cc').calendar({width:180,height:180});});}function load2(){using(['dialog','messager'],function(){$('#dd').dialog({title:'Dialog',width:300,height:200});$.messager.show({title:'info',msg:'dialog created'});});}</script></head><body><h1>EasyLoader</h1><a href="#" class="easyui-linkbutton" onclick="load1()">Load Calendar</a><span style="white-space:pre"></span><a href="#" class="easyui-linkbutton" onclick="load2()">Load Dialog</a><div id="cc"></div><div id="dd"></div></body></html>
項目部署成功之後,在地址欄輸入相應的地址就可看到如的介面效果。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.