Skip to content

Instantly share code, notes, and snippets.

View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
thstghsrthsrths
<script id="jsbin-javascript">
View index.html
<div id="app">
<input type="file" @change="selectFile">
<img :src="image" width="200">
</div>
View index.html
<div id="app">
<input type="file" @change="selectFile">
</div>
View index.html
<div id="app">
<input type="file" @change="selectFile">
</div>
@PKTseng
PKTseng / index.html
Last active Aug 11, 2020
select-陣列包物件
View index.html
<div id="app">
<select v-model="selectGender">
<option v-for="option in options" :value='option.value'>{{option.text}}</option>
</select>
<h1>{{selectGender}}</h1>
</div>
View index.html
<div id="app">
<select v-model="selectMonth">
<option v-for="month in 12" >{{month}}</option>
</select>
<h1>{{selectMonth}}</h1>
</div>
View index.html
<div id="app">
<select v-model="selectNumber">
<option v-for="number in numbers" >{{number}}</option>
</select>
<h1>{{selectNumber}}</h1>
</div>
@PKTseng
PKTseng / index.html
Last active Aug 11, 2020
select-arry
View index.html
<div id="app">
<select>
<option v-for="number in numbers" :value="number">{{number}}</option>
</select>
</div>
View index.html
<div id="app">
<select v-model="number">
<option disabled value="">select number</option>
<option value="001">2020</option>
<option value="002">2021</option>
<option value="003">2022</option>
<!--<option>2020</option>
<option>2021</option>
You can’t perform that action at this time.