我一直在使用 jquery 插件的某些方面,但是当我在 Jquery 插件中遇到限制/限制时,我也希望可以自由使用普通的 Jquery 代码。
目前我似乎无法使用普通的 Jquery 日期选择器
<head>
<sj:head jquerytheme="redmond"/>
<s:head />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><s:text name="Home.title" /></title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" /> <!-- DO NOT REMOVE -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="/Project/css/style.css" rel="stylesheet" type="text/css" />
<link type='text/css' href='/Project/css/confirm.css' rel='stylesheet' media='screen' />
<link type='text/css' href='/Project/css/contact.css' rel='stylesheet' media='screen' />
<script type="text/javascript" src="/Project/js/blockUI.js"></script>
<script type="text/javascript" src="/Project/js/jquery.simplemodal.js"></script>
<%-- <script type="text/javascript" src="/Project/js/confirm.js"></script> --%>
<script type="text/javascript" src="/Project/js/contact.js"></script>
<script type="text/javascript" src="/Project/js/watermark.js"></script>
<!-- <script type="text/javascript" src="js/validation.js"></script> -->
<script type="text/javascript" >
日期选择器的功能:
jQuery(function($){
date = "";
$( '.datepicker' ).datepicker({
dateFormat: 'yy/mm/dd',
changeMonth: true,
changeYear: true,
minDate: '0',
maxDate: '+20Y'
});
});
我得到错误:Uncaught TypeError: Object [object Object] has no method 'datepicker'
有什么建议么?