测试

export default () => {
    const home = isHomePage()
    const category = isCategoryPage()
    if (!home && !category) return

    pageElementInit()
    let options = {}

    if (home) {
        initHomePageElement()
        options = {
            page: 'home',
            wrap: '.day',
            find: '.postTitle,.postCon,.postDesc',
            callback() {
                $('.day').remove()
            },
        }
    }

    if (category) {
        initCategoryPageElement()
        options = {
            page: 'category',
            wrap: '.entrylistItem',
            find:
                '.entrylistPosttitle,.entrylistPostSummary,.entrylistItemPostDesc',
            callback() {
                $('.entrylist').remove()
            },
        }
    }

    main(options)
}

原文地址:https://www.cnblogs.com/guangzan/p/13897564.html