我想使用人性化库和 Jquery 为案例表单输入命名。到目前为止,我有这个:
$("#FirstName,#LastName").blur(function () {
Humanize.titleCase( $(this) )
});
但它给了我一个错误:
humanize.min.js:2 Uncaught TypeError: n.split is not a function
at o (humanize.min.js:2)
at Object.titleCase (humanize.min.js:2)
at HTMLInputElement.<anonymous> (<anonymous>:3:14)
at HTMLInputElement.dispatch (jquery-2.2.4.min.js:3)
at HTMLInputElement.r.handle (jquery-2.2.4.min.js:3)