referenceerror:
CreateTask не определяется
at htmlbuttonelement.onclick` < /p>
< /blockquote>
Когда я нажимаю кнопку. < /p>
Ссылка Stackblitz (при необходимости):
https://stackblitz.com/edit/stackblitz- ... index.html
Код: Выделить всё
function createTask() {
var x;
x++;
var value = 'task'.concat(toString(x));
class Task {
constructor(value) {
super(value, value);
this.task = {
value: {
title: '',
desc: ''
}
};
}
}
const task = new Task(Value);
}< /code>
Home
+
Подробнее здесь: https://stackoverflow.com/questions/794 ... script-tag
Мобильная версия