strange behaviour of variable named “status” in javascript

前端 未结 3 1179
盖世英雄少女心
盖世英雄少女心 2020-12-02 01:50



        
3条回答
  •  我在风中等你
    2020-12-02 02:36

    The word status is a reserved keyword, so you need to rename it like status3 or something else. See snippet below. You can also see a list of reserved words by visiting this link: http://www.w3schools.com/js/js_reserved.asp

    
    
    
    
    

    I hope this will help you.

提交回复
热议问题