Skip to content

Commit

Permalink
fix demo tap event
Browse files Browse the repository at this point in the history
  • Loading branch information
Maizify committed Apr 28, 2016
1 parent 7535110 commit 9091cb0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions example/demo2.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
<link href="./lib/weui.min.css" rel="stylesheet"/>
<link href="./lib/demo.css" rel="stylesheet"/>

<script src="./lib/jquery-1.12.3.min.js"></script>
<script src="./lib/zepto.min.js"></script>
<script src="./lib/zepto.touch.min.js"></script>

<?php if ($dev_mode == '1') { ?>
<!-- 引入vConsole的JS库 -->
Expand All @@ -30,7 +31,7 @@
</body>

<script>
$('.js_btn_log').on('click', function(e) {
$('.js_btn_log').on('tap', function(e) {
// 打印log时无须判断是否为dev_mode,
// 未加载vConsole时,console.log()不会显示到前台
console.log('Hello World');
Expand Down

0 comments on commit 9091cb0

Please sign in to comment.