1

我正在尝试使以下演示脚本正常工作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 文件(在浏览器中测试过的路径,它是),任何人都可以看到问题吗?

谢谢!

4

0 回答 0