Does jQuery or JavaScript have the concept of classes and objects?

前端 未结 7 1186
故里飘歌
故里飘歌 2021-01-30 00:28

I found the following code somewhere, but I am not understanding the code properly.

ArticleVote.submitVote(\'no\');return false;

Is Arti

7条回答
  •  不要未来只要你来
    2021-01-30 00:52

    You can achieve the above through Javascript, nothing to do with jQuery.

    var ArticleVote= {}; 
    
    ArticleVote.submitVote = function(voteResult) {
        console.log(voteResult);
    }
    
    
    function Vote(){
       ArticleVote.submitVote('no');
       return false;
    }
    

提交回复
热议问题