models/like.js:
import {HTTP} from '../util/http.js'
class LikeModel extends HTTP {
like(behavior, artID, category){
let url = behavior=='like'?'like':'like/cancel'
this.request({
utl:url,
method:"POST",
data:{
art_id:artID,
type:category
}
})
}
}
export {LikeModel}
老师,我对着视频检查了多遍,但是会出现这样的错误,请问为什么会出现这个undefined?