<div class="container" id="app">
<h1>复制图片</h1>
<div class="input-group ma-b-10">
<span class="input-group-addon" id="basic-addon3">粘贴</span>
<input ref="input" type="text" class="form-control" id="basic-url" aria-describedby="basic-addon3">
</div>
<div class="card ma-b-10">
<div class="card-body">
<h4 class="card-title">
获得base64数据
</h4>
<textarea v-if="base64" class="form-control" id="base64" rows="3" v-model="base64">
</textarea>
</div>
</div>
<div class="card ma-b-10">
<div class="card-body">
<h4 class="card-title">
生成 img
</h4>
<canvas id="myCanvas">
你的浏览器不支持canvas,建议使用最新版的Chrome浏览器。
</canvas>
<div id="tempDiv"></div>
![](base64) </div>
</div>
<div class="card ma-b-10">
<div class="card-body">
<h4 class="card-title">
图片生成
</h4>
<input type="text" class="form-control" placeholder="https://www. id="code" v-model="code2"><br/>
<a href="#" @click="addRow()" class="btn btn-primary">二维码</a>
</div>
</div>
</div>