$(document).ready(function(){
$("#form").validate({
rules:{
user:{
required:true,
remote:{
url:"Index/index",
type:"get",
dataType:'json',
data:{
'user':function(){
return $('#user').val();
}
按照thinkphp3.1.3这样写法是正确的 3.2.3的路径就是不对的 希望大神求解
应该会有提示吧,你试试全路径,应该是不能解析,或者加上模块名 比如 :'Home/Index/index'