| | |
| | | <template>
|
| | | <div @click="Click_test('测试')">
|
| | | <text class="text" >测试toast</text>
|
| | | </div>
|
| | | </template>
|
| | |
|
| | | <style>
|
| | | .text {
|
| | | font-size: 70px;
|
| | | color: #ff0000
|
| | | }
|
| | | </style>
|
| | |
|
| | | <script>
|
| | | var modal = weex.requireModule('testModal');
|
| | | export default {
|
| | | //事件定义
|
| | | methods: {
|
| | | Click_test: function(ev) {
|
| | | modal.toast(ev)
|
| | |
|
| | | // modal.toast({
|
| | | // message: '点击了链接:' + ev,
|
| | | // duration: 1
|
| | | // });
|
| | | }
|
| | | },
|
| | |
|
| | | }
|
| | | </script>
|
| | | |
| | | |
| | | <template> |
| | | <div @click="Click_test('测试')"> |
| | | <text class="text" >测试toast</text> |
| | | </div> |
| | | </template> |
| | | |
| | | <style> |
| | | .text { |
| | | font-size: 70px; |
| | | color: #ff0000 |
| | | } |
| | | </style> |
| | | |
| | | <script> |
| | | var modal = weex.requireModule('testModal'); |
| | | export default { |
| | | //事件定义 |
| | | methods: { |
| | | Click_test: function(ev) { |
| | | modal.toast(ev) |
| | | |
| | | // modal.toast({ |
| | | // message: '点击了链接:' + ev, |
| | | // duration: 1 |
| | | // }); |
| | | } |
| | | }, |
| | | |
| | | } |
| | | </script> |
| | | |
| | | |
| | | </script> |