我用谷歌搜索,检查了所有常见的响应。脚本似乎是正确的顺序(它们在演示中以相同的顺序工作)但是由于某种原因,当我尝试实现它时,我得到了错误。
我有一个包含完整页面代码的粘贴箱。但这是它的要点。
在我的标题中:
<script src="http://code.jquery.com/jquery-1.10.0.min.js"></script> <script src="picker/picker.js"></script>
<script src="picker/picker.date.js"></script>
<script src="picker/picker.time.js"></script>
<script src="picker/legacy.js"></script>
<script src="picker/main.js"></script>
在我的身体里:
<input id="" class="fieldset__input js__datepicker" type="text" placeholder="Choose Date">
<input id="" class="fieldset__input js__timepicker" type="text" placeholder="Choose Time">
当我剥离除这些部分之外的所有其他内容时,它工作正常。为什么这不起作用?
我的错误
[10:23:00.178] ReferenceError: $ is not defined @ https://www.nn.com/picker/picker.js:26
[10:23:00.209] ReferenceError: Picker is not defined @ https://www.nnnr.com/picker/picker.date.js:23
[10:23:00.223] ReferenceError: Picker is not defined @ https://www.nnnnnn.com/picker/picker.time.js:23
[10:23:00.245] ReferenceError: $ is not defined @ https://www.nnnn.com/picker/main.js:30