code.js 343 B

12345678910111213141516171819202122
  1. const app = new Vue({
  2. el: '#root',
  3. data: {
  4. lessons: [...Array(133).keys()].slice(101).map(n => n.toString(10).slice(1)),
  5. },
  6. methods: {
  7. onClick(e) {
  8. alert(e.target.textContent);
  9. },
  10. setDisabled() {
  11. this.isDisabled = true;
  12. },
  13. toggleClass() {
  14. this.isLoading = !this.isLoading;
  15. }
  16. },
  17. });