![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JQuery 技术
文章平均质量分 69
BesturnLee
众里寻她千百度,蓦然回首,那人却在灯火阑珊处。
展开
-
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 · 1464 阅读 · 0 评论 -
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 · 1647 阅读 · 0 评论 -
通过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 · 4442 阅读 · 0 评论