!(function (doc, win) {
// 拿到html标签的dom元素对象
var docEle = doc.documentElement,
evt = "onorientationchange" in window ? "orientationchange" : "resize",
fn = function () {
// 拿到当前屏幕的尺寸。
var width = docEle.clientWidth;
width = width < 320 ? 320 : width;
width = width > 750 ? 750 : width;
width && (docEle.style.fontSize = 100 * (width / 750) + "px");
setTimeout(function() {
var width = docEle.clientWidth;
width = width < 320 ? 320 : width;
width = width > 750 ? 750 : width;
width && (docEle.style.fontSize = 100 * (width / 750) + "px");
}, 333);
};
win.addEventListener(evt, fn, false);
doc.addEventListener("DOMContentLoaded", fn, false);
}(document, window));