• envjs


    unning

    • The goal of Envjs is to provide a highly portable javascript implementation of the Browser as a scripting environment (often referred to as a 'headless' browser ).

      The default implementation is Rhino but many developers have and continue to develop bridges for running Envjs in Ruby, Python, and other host languages with the SpiderMonkey and V8 javascript engines, to name a few.

      The examples below will guide you through how to use Envjs as an end-user, noting in each example which platform the example pertains to. Platform developers should add equivalent examples whenever possible.

      A Warning...

      Envjs will not automatically load and run the external javascript unless the script tags have the attribute type='text/envjs'. To enable all external javascript files you only have to tell Envjs to do so, however remember that all javascript executed will have read/write access to your file system

      Please be aware of the dangers of loading arbitrary code in an insecure environment.


    • rhino


      When running with generic rhino, you will only need the latest rhino, (the rhino bundled with java 1.6 is not recent enough). You will also need to write a javascript file that is responsible for loading env.rhino.js, setting available options if any, and finally setting window.location.



    • readability


      This example is prompted by work from Emre Sevinç who began to try to use Envjs to crawl web pages and use readability.js to output nice simple pages.

  • 相关阅读:
    C语言学习笔记之 程序流程结构
    C语言学习笔记之 类型转换
    C语言学习笔记之 标准输入输出函数
    C语言学习笔记之 运算符
    bzoj 4322 东西分配问题
    bzoj 3240 矩阵乘法+十进制快速幂
    bzoj 4017 子序列和的异或以及异或的和
    bzoj 1934 最小割
    bzoj 3275 最小割
    bzoj 3931 最短路+最大流
  • 原文地址:https://www.cnblogs.com/lexus/p/2428732.html
Copyright © 2020-2023  润新知