Giter Site home page Giter Site logo

nodedemos's Introduction

NodeDemos

该仓库用于存放Node相关的demo

iframe自适应(iframe-self-adaption)

iframe自适应,同域和跨域下实现

无刷新文件上传(fileupload)

利用Express4.12.1框架 + multiparty工具包实现了Node下的文件无刷新上传功能

  • 利用iframe实现
  • 利用ajax实现

豆瓣爬虫(crawler-douban)

利用nodejs实现一个豆瓣的爬虫,使用到的工具包:

遇到的问题:

1) 某些网页不让爬取

解决方法:设置合理的User-Agent,模仿浏览器行为

2)有的用户没有id,直接就是一个个性域名

解决方法:舍弃

3)抓取太频繁,被封号!服务器返回403

利用setInterval()函数,设置合理的抓取间隔

echarts的简单使用(echartsTest)

nodejs+express+echarts

跨终端Web实例(cross-terminal)

实例来自鬼道师兄的《夸终端Web》

测试URL:

多种跨域的具体实现(cross-domain)

  • jsonp
  • cors
  • document.domain
  • URL.hash
  • cross-fragment
  • window.name
  • postMessage

nodedemos's People

Contributors

chenjunxyf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.