Javascript “Uncaught TypeError: object is not a function” associativity question

前端 未结 6 483
日久生厌
日久生厌 2020-12-02 14:57

Code is as follows:


    hello




        
6条回答
  •  醉酒成梦
    2020-12-02 15:40

    I got a similar error and it took me a while to realize that in my case I named the array variable payInvoices and the function also payInvoices. It confused AngularJs. Once I changed the name to processPayments() it finally worked. Just wanted to share this error and solution as it took me long time to figure this out.

提交回复
热议问题