remoteTest.json文件里只写了"true".
按照老师说的敲,为什么会出现这个提示呢?
XMLHttpRequest cannot load file:///Users/my/Documents/jQuery%20Validation%E6%8F%92%E4%BB%B6(%E6%BA%90%E4%BB%A3%E7%A0%81)/remote.jason?username=we. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.
是不是你的根目录中有中文,在发送请求的时候出现乱码了。导致无法读取数据啊!因为你的//Users/my/Documents/jQuery%20Validation%E6%8F%92%E4%BB%B6(%E6%BA%90%E4%BB%A3%E7%A0%81)/remote.jason中间有一段是乱码的