var Ip=returnCitySN['cip'] var cityname=returnCitySN['cname'] localStorage.setItem('Ip', Ip) localStorage.setItem('cityname', cityname)