- 博客(12)
- 收藏
- 关注
转载 MyEclipse 配置 struts-2.3.8
1.建立web project工程,我的结构如下:2.这一步非常重要:引入必要的jar包,很多博客丫的就给出7个jar包,别理他们!根本不完整!版本2.3.8的struts2需要的jar包如下:一共11个!引入方法是:右键工程->properties->java build path->Libraries->add external jar 把这11个jar包引入进去!(
2013-02-15 00:29:57 1265 1
原创 JQuery Mobile 禁用所有链接的AJAX导航功能
$(document).ready(function() { // disable ajax nav $.mobile.ajaxLinksEnabled = false; });
2013-01-31 11:14:37 2722
原创 通过AJAX和PHP,提交JQuery Mobile表单
File name: callajax.php<?php $firstName = $_POST[firstName]; $lastName = $_POST[lastName]; echo("First Name: " . $firstName . " Last Name: " . $lastName);?>File name: index.ph
2013-01-31 11:01:15 4504
原创 JQuery 阻止 Form 表单提交的方法
$(document).ready(function(){ $(":submit[id=btn-search]").click(function(e){ var strSearch = $("#ipt-search").val(); if($.isEmpty(strSearch) || $.isNum(strSearch)){ $("#dialog-title").html("操作
2013-01-30 18:35:30 1659
原创 JS 获取 URL 中文/英文参数,兼容 IE/Firefox
// jQuery方法定义 - JS 获取 url 中文/英文参数,兼容 IE/Firefox // 中文编码用encodeURI // 跳转前 window.location.href = encodeURI("dialog.php?title=参数1&context=参数2"); // 获取值 var strTitle = $.getUrlParam('title'); // 返回时
2013-01-30 17:27:31 1482
原创 JQuery Mobile 两个页面之间的参数传递
index.html 页面$(document).bind('pagebeforechange',function(e, data){ if ( typeof data.toPage != "string" ) { //window.alert("From = " + data.options.data); //window.alert("A = " + data.option
2013-01-30 17:19:36 2536
原创 JQuery Mobile 的4个初始化事件
/* JQuery Mobile 的4个初始化事件 */$(document).bind('mobileinit', function(){ window.alert('1. JQuery Mobile加载时最先触发的事件'); // page loader 属性设置 $.mobile.loader.prototype.options.text = "正在加载中 ..."; $.mo
2013-01-30 17:13:25 1824
原创 JQuery Mobile 页面过渡效果设置
$(document).ready(function(){ $('#default').bind('click', function() { $.mobile.loadingMessageTextVisible = false; $.mobile.showPageLoadingMsg(); }); $('#loadingMessageTextVisible').bind( 'clic
2013-01-29 17:06:14 1282
原创 嵌套div高度自适应
div嵌套的时候,外层的div的高度自适应的问题,当然这在IE下是没问题的,主要是firefox下的问题。如下图所示:<style type="text/css">#box { background-color:#0cf; width:100%; border:1px #00f solid; }#left { background-color:#fc0; ...
2010-05-21 10:47:08 234
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人