fix: 修改文案

master
limin 2021-04-27 17:15:17 +08:00 committed by XuPeng
parent 11c9b606d2
commit 7bd121e84e
2 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ Page({
},
handleClearTimeout() {
clearTimeout(this.data.timeout);
console.log('clearInterval', this.data.timeout);
console.log('clearTimeout', this.data.timeout);
},
handleSetInterval() {
this.handleClearInterval();

View File

@ -3,12 +3,12 @@
<import src="../../common/foot.wxml" />
<view class="container">
<template is="head" data="{{title: 'getNetworkType'}}"/>
<template is="head" data="{{title: '定时器'}}"/>
<view class="page-body">
<view class="page-section">
<view>setInterval 2s 一次随机改变result</view>
<view>setTimeout 2s 后随机改变result</view>
<view>setInterval 1s 一次随机改变result</view>
<view>setTimeout 1s 后随机改变result</view>
<view>result: {{result}}</view>
<view class="btn-area">
<button type="primary" bindtap="handleClearInterval">clearInterval</button>