var suffix = device.type === "pc" ? ".pc" : ".mobile"; requirejs.config({ paths: { // 基础模块 "F": "http://y0.ifengimg.com/base/origin/F-amd-1.2.0.min", "FM": "http://y0.ifengimg.com/commonpage/1130/F-amd-mobile-1.1.0.min", "debug": "http://y0.ifengimg.com/commonpage/1130/F-amd-mobile-1.1.0.min", // 头部 'keywords': 'http://m0.ifengimg.com/keywords', "header": "http://y0.ifengimg.com/commonpage/1130/header.pc.min", "search": "http://y0.ifengimg.com/commonpage/1130/header" + suffix + ".min", // 轮播图 "ppt.pc": "http://y0.ifengimg.com/commonpage/1130/ppt.pc.min", "ppt.mobile": "http://y0.ifengimg.com/commonpage/1205/ppt.mobile.min", // 视频播放器 "video.pc": "http://y0.ifengimg.com/commonpage/2014/0304/video.pc.min", "video.mobile": "http://y0.ifengimg.com/commonpage/1130/video.mobile.min", // 评论相关 "comment.number": "http://y0.ifengimg.com/commonpage/1210/comment.number.min", "comment.pc": "http://y2.ifengimg.com/commonpage/2014/0804/comment.pc.min", "comment.mobile": "http://y0.ifengimg.com/commonpage/1216/v1/comment.mobile.min", // tab切换 推荐 看了还看 "tabControl.pc": "http://y0.ifengimg.com/commonpage/1218/recommend.pc.min", "recommend.pc": "http://y0.ifengimg.com/commonpage/1218/recommend.pc.min", "readAndRead": "http://y0.ifengimg.com/commonpage/1206/recommend" + suffix + ".min", "survey.pc": "http://y0.ifengimg.com/commonpage/1203/survey.pc.min", //pc端分享(内容分享和划词分享) "share.pc": "http://y0.ifengimg.com/commonpage/0612/1/utils.pc.min", //移动端分享(内容分享) "share.mobile": "http://y0.ifengimg.com/commonpage/2014/0612/utils.mobile.min", //返回顶部 "utils": "http://y0.ifengimg.com/commonpage/0612/1/utils.pc.min", //48小时点击排行浮动 "floatIt.pc" : "http://y0.ifengimg.com/commonpage/0612/1/utils.pc.min",