//$(document) // .ready(function() { // $('.ui.form') // .form({ // fields: { // username: { // identifier : 'username', // rules: [ // { // type : 'empty', // prompt : '请输入用户名' // }, // { // type : 'empty', // prompt : '用户名不能为空' // } // ] // }, // password: { // identifier : 'password', // rules: [ // { // type : 'empty', // prompt : '请输入密码' // }, // { // type : 'length[6]', // prompt : '密码必须六位数以上' // } // ] // } // } // }) // ; // }) // ;