标签:
$(document).ready(function () { $("input[data-val-length-max]").each(function (index, element) { var length = parseInt($(this).attr("data-val-length-max")); $(this).prop("maxlength", length); }); });
标签:
原文地址:http://www.cnblogs.com/wipphj/p/4484049.html