2018-08-12 17:35:13 +08:00

18 lines
306 B
JavaScript

import Page from '../../common/page';
import Notify from '../../dist/notify/index';
Page({
showNotify() {
Notify('通知内容');
},
showNotify2() {
Notify({
duration: 1000,
text: '通知内容',
selector: '#custom-selector',
backgroundColor: '#38f'
});
}
});