要引入这个文件才起作用<link rel="stylesheet" href="../bower_components/foundation-sites/dist/css/foundation-float.css">
2017-12-26
我的代码在页面上是这样写的
$(document).foundation();
Foundation.Abide.defaults.validators['greater-than'] = function ($element, required, parent){
f(!required) return true;
var pre = $('#' + $element.attr('data-greater-than')).val();
var cur = $element.val();
return parseInt(cur)-parseInt(pre);
}
$(document).foundation();
Foundation.Abide.defaults.validators['greater-than'] = function ($element, required, parent){
f(!required) return true;
var pre = $('#' + $element.attr('data-greater-than')).val();
var cur = $element.val();
return parseInt(cur)-parseInt(pre);
}
2017-09-21
在页面,分别输入梁数字,第一个比第二数字大,调试工具里显示报错,页面无效果显示。下面时报错提示
TypeError: _this5.options.validators[v] is not a function
TypeError: _this5.options.validators[v] is not a function
2017-09-21