Skip to content

bigablecat/data_structures_and_algorithms_using_javascript

 
 

Repository files navigation

《数据结构与算法JavaScript描述》学习笔记

cover

〇. 本项目介绍:
对《数据结构与算法JavaScript描述》官方发布的随书代码练习和解读

一. 官方项目地址:
https://github.com/oreillymedia/data_structures_and_algorithms_using_javascript

二. 使用js shell运行本书代码(以windows 10操作系统为例):

1. 安装:下载mozilla官方的jsshell压缩包即可

  1. 前往https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/

  2. 找到自己的操作系统对应的jsshell压缩包,本例中下载的是jsshell-win64.zip

  3. 解压缩jsshell-win64.zip文件到自己喜欢的路径,本例中最终解压路径为D:\jsshell-win64\

2. 使用jsshell中的js.exe运行js文件:

新建一个hello.js文件,写一行代码print("hello world!"),有两种方式使用jsshell运行hello.js文件:

2.1) 方法一:在jsshell-win64文件夹下直接运行

2.1.1) 将hello.js文件放入jsshell-win64文件夹  

2.1.2) 在jsshell-win64文件夹下,打开windows自带的cmd或PowerShell命令行工具  

2.1.3) 在命令行输入.\js.exe .\hello.js  

D:\jsshell-win64>.\js.exe .\hello.js  

运行结果:hello world!  

备注:js.exe和hello.js前需要加上.\,或者按tab键自动补全也会加上.\

2.2) 方法二:将jsshell-win64/js.exe添加到windows系统环境变量,全局任意调用js.exe

2.2.1) 将jsshell文件夹添加到windows系统环境变量PATH  

2.2.2) 进入hello.js所在文件夹,打开windows自带的cmd或PowerShell命令行工具  

2.2.3) 在命令行输入js.exe .\hello.js  

x:\xxx>js.exe .\hello.js  

备注:hello.js前需要加上.\,或者按tab键自动补全也会加上.\

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy