MoeKit / seedit-bbs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

seedit.bbs Build Status Coverage Status


BBS 工具脚本


使用说明

只用于bbs,即PC端和WAP端。 对于get相关函数,默认参数为当前页面地址(document.location.href)。

seajs.use('index', function(bbs){
        console.log(bbs.page);
});

API

isWap page.isWap()

检查是否为WAP(手机)

isNode page.isNode([url])

检查是否为版块页面

isTopic page.isTopic([url])

检查是否为帖子页面

getTid page.getTid([url])

获取帖子tid,返回字符串,不为帖子页面返回 undefined

getFid page.getFid([url])

获取版块fid,返回字符串,不为版块页面返回 undefined

About


Languages

Language:JavaScript 100.0%