如何实现一个hello word语句输出
代码演示运行方式
- VS code IDE,代码编写,基本的语法检查
- Remix IDE,简单代码编译运行看结果.方便学习
- Truffle 环境,生产环境,较为复杂的代码编译部署
Remix IDE简介
- 基于浏览器的Solidity编译环境
- 可以在内存中模拟合约,直接运行,而不需要部署等复杂流程,适合入门学习
- http://remix.ethereum.org 直接使用
- https://ethereum.github.io/browser-solidity/#optimize=false&version=soljson-v0.4.23+commit.124ca40d.js有时报错mock compiler: source not found的话可以使用这个地址
- https://github.com/ethereum/remix-ide也可以安装到本地
- Remix文档:http://remix.readthedocs.io/
Remix三种运行模式
- 默认模式:jacascript vm
- 通过本地私有网络的rpc端口,链接到本地私有网络进行调试
- 使用Metamask插件提供的网络