原来的数据为:公司动态
var title= window.location.href;
得到的数据为:
原本的中文变成了乱码
这个时候可以使用
var title= decodeURI(window.location.href);
这个时候就变成了