BBS 工具脚本
只用于bbs,即PC
端和WAP
端。
对于get
相关函数,默认参数为当前页面地址
(document.location.href)。
seajs.use('index', function(bbs){
console.log(bbs.page);
});
检查是否为WAP(手机)
站
检查是否为版块
页面
检查是否为帖子
页面
获取帖子tid,返回字符串
,不为帖子页面返回 undefined
获取版块fid,返回字符串
,不为版块页面返回 undefined