在不需要验证select时,提示错误 Uncaught TypeError: Cannot read property 'param' of null 在查看源代码时,发现在select不加任何事件时,下面的这个函数会出问题: dataRules: function( element ) { for循环中的value值,有时候会是undefined,有时候会是null,所以修改一下为: |
在不需要验证select时,提示错误 Uncaught TypeError: Cannot read property 'param' of null 在查看源代码时,发现在select不加任何事件时,下面的这个函数会出问题: dataRules: function( element ) { for循环中的value值,有时候会是undefined,有时候会是null,所以修改一下为: |