<input data-validation="call[myFunction]"> <!-- 可以设置参数 --> <input data-validation="call[myFunction][arg1][arg2][argN]">
var myFunction = function(arg1, arg2, argN) { return true; // or false }
var myFunction = function(arg1, arg2, argN) { return { state: true, // or false message: 'validation message' }; }