V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐关注
Meteor
JSLint - a JavaScript code quality tool
jsFiddle
D3.js
WebStorm
推荐书目
JavaScript 权威指南第 5 版
Closure: The Definitive Guide
honkew

cheerio 是怎么变成一个单文件的

  •  1
     
  •   honkew · Jan 13, 2018 · 4198 views
    This topic created in 3030 days ago, the information mentioned may be changed or developed.
    Supplement 1  ·  Jan 13, 2018
    就是一个单文件,怎么把模块打包成给浏览器使用的。

    http://danran.coding.me/yunguaji/cheerio.js
    4 replies    2018-01-13 18:47:35 +08:00
    honkew
        1
    honkew  
    OP
       Jan 13, 2018
    我是不是应该发到 nodejs 节点
    ss098
        2
    ss098  
       Jan 13, 2018
    它不是一个单文件,是一个 npm 包。
    noe132
        3
    noe132  
       Jan 13, 2018
    https://github.com/cheeriojs/cheerio
    很明显不是一个文件。。。
    只不过他暴露出来的接口都封装在 cheerio 这个对象里。

    可以去了解了解模块化编程
    honkew
        4
    honkew  
    OP
       Jan 13, 2018
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1107 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 17:35 · PVG 01:35 · LAX 10:35 · JFK 13:35
    ♥ Do have faith in what you're doing.