通过更新到最新版本,我已经使用jquery输入掩码很长时间了。
最近,作者发布了最新版本3.60,即amd
(函数(工厂){ if (类型定义=== 'function‘&& define.amd) ){定义(“jquery.inputmask”,'jquery',工厂);}{工厂(JQuery);}(函数($) { if ($.fn.inputmask ===未定义)){
当我在需求定义中包含已定义的路径时,它会抛出以下错误
jquery.inputmask是未定义的。如果有人使用过最新版本,请了解如何使用bundle和d文件,请帮助
github原始文件url https://rawgit.com/RobinHerbots/jquery.inputmask/3.x/dist/jquery.inputmask.bundle.min.js
谢谢
发布于 2015-09-17 12:21:37
https://github.com/RobinHerbots/jquery.inputmask#usage
看看这部分。
<script src="jquery.js" type="text/javascript"></script>
<script src="inputmask.js" type="text/javascript"></script>
<script src="jquery.inputmask.js" type="text/javascript"></script>
and add this to re
paths: {
...
"dependencyLib": "../dist/inputmask/dependencyLib",
"inputmask": "../dist/inputmask/inputmask",
...
}
for mee this looks like this
paths: {
inputmask : 'jquery.inputmask/dist/inputmask/inputmask',
dependencyLib : 'jquery.inputmask/dist/inputmask//dependencyLib',
jQueryInputmask : 'jquery.inputmask/dist/inputmask/jquery.inputmask',
}
https://stackoverflow.com/questions/25428602
复制相似问题