JS 推断URL中是否含有 http:// 假设没有则自己主动为URL加上 url = url.substr(0,7).toLowerCase() == "http://" ? url : "http://" + url; 记性不大好。常常忘记。这会直接做个记录吧。