我正在尝试使用以下演示脚本http://www.monkeyphysics.com/mootools/script/2/
这是我的代码:
<style type="text/css">
// this code http://www.monkeyphysics.com/mootools/fetch/4/datepicker.css
</style>
<script src="datepicker.js"></script> //tested in browser, correct path
<script language="javascript" type="text/javascript">window.addEvent('load', function() {
new DatePicker('.demo_vista', { pickerClass: 'datepicker_vista' });
new DatePicker('.demo_dashboard', { pickerClass: 'datepicker_dashboard' });
new DatePicker('.demo_jqui', { pickerClass: 'datepicker_jqui', positionOffset: { x: 0, y: 5 } });
new DatePicker('.demo', { positionOffset: { x: 0, y: 5 }});
});</script>
<label>Datepicker with Vista skin:</label>
<input name='date_B' type='text' value='' class='date demo_vista' />
<label>Datepicker with OSX Dashboard skin:</label>
<input name='date_B' type='text' value='' class='date demo_dashboard' />
<label>Datepicker with jQuery UI skin:</label>
<input name='date_B' type='text' value='' class='date demo_jqui' />
<label>Datepicker basic (CSS only):</label>
<input name='date_B' type='text' value='' class='date demo' />
这是来自网站的完全复制/粘贴,我得到的问题是根本没有加载日期选择器。它就像它没有找到JS文件(在浏览器中测试路径,它是),任何人都可以看到问题吗?
谢谢!