摘要: 开发Dapp流程 1.vue前端生成项目, 写好前端页面 2.安装truffle npm install -g truffle npm install -g ethereumjs-testrpc 3.下载ganache软件 https://www.trufflesuite.com/ganache# 阅读全文
posted @ 2020-10-31 12:00 AlanTao 阅读(681) 评论(0) 推荐(0) 编辑
摘要: .component-upload-wrapper { position: relative; width: 100%; display: flex; align-items: center; justify-content: space-between; flex-flow: wrap; .fil 阅读全文
posted @ 2020-10-20 10:42 AlanTao 阅读(129) 评论(0) 推荐(0) 编辑
摘要: // 获取文件名作为全局组件名 // const getFileName = (str: string): string => { return str.replace(/(.*\/)*([^.]+).*/gi, '$2'); }; // 注册全局组件 // export function regi 阅读全文
posted @ 2020-10-19 17:24 AlanTao 阅读(319) 评论(0) 推荐(0) 编辑
摘要: 1.定义方法名 options.detail = '测试'; /** * 自定义事件, websoketCreate接收 */ const event = new CustomEvent('watchWebsocket', options); window.dispatchEvent(event); 阅读全文
posted @ 2020-10-14 11:50 AlanTao 阅读(1377) 评论(0) 推荐(0) 编辑
摘要: module.exports = { env: { browser: true, }, extends: ['eslint:recommended', 'plugin:vue/essential', 'plugin:@typescript-eslint/recommended'], parserOp 阅读全文
posted @ 2020-09-24 17:44 AlanTao 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 1.css断行元效, 添加 white-space: normal; word-break: break-word; 阅读全文
posted @ 2020-09-23 17:02 AlanTao 阅读(1050) 评论(0) 推荐(0) 编辑
摘要: { // Place your snippets for vue here. Each snippet is defined under a snippet name and has a prefix, body and // description. The prefix is what is u 阅读全文
posted @ 2020-09-10 17:11 AlanTao 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 有些业务需要在 vue 中打开新窗口,通常有两种方式: 1. <router-link>标签 <router-link tag="a" target="_blank" :to="{name:'ArticleDetail',params:{id:0}}">新增文章</router-link> 其中,  阅读全文
posted @ 2020-08-25 18:05 AlanTao 阅读(8776) 评论(0) 推荐(0) 编辑
摘要: 1.用户名, 如41077 C:\Windows\System32\taskkill.exe /F /FI "USERNAME eq 41077" /FI "IMAGENAME ne explorer.exe" /FI "IMAGENAME ne dwm.exe" 1.右键快捷方式 => 下一步 阅读全文
posted @ 2020-08-13 23:49 AlanTao 阅读(451) 评论(0) 推荐(0) 编辑
摘要: var getLanguage = { language: { 'zh-CN': 'zh_CN', 'zh-HK': 'zh_TW', 'zh-TW': 'zh_TW', 'en-US': 'en_US', 'ko-KR': 'ko_KR', 'ja-JP': 'ja_JP', 'ru-RU': ' 阅读全文
posted @ 2020-08-07 14:14 AlanTao 阅读(353) 评论(0) 推荐(0) 编辑