\ 在JS里是一个特殊字符, 需要转义的.
file_url="E:\\bea\\user_projects\\applications\\mydomain1\\wapapp2\\logpic\\pic1.jpg";
file_name=file_url.substring(file_url.lastIndexOf ("\\")+1); 
alert(file_name);