options :为传递过来的选择器对象
gotoAnchor({el:$('#top')});
gotoAnchor:function(options){
var anchor = options.el;
var $body = window.document.documentElement;
var ua = navigator.userAgent.toLowerCase();
if (ua.indexOf("webkit") > -1) {
$body = window.document.body;
}
var pos = anchor.offset();
$body.scrollTop = pos.top - 50;
}