JavaScript AngularJS Brackets Array -


मैं कर रहा हूँ:

  myArray.push (pageCount);  

तो मेरे पास कुछ ऐसा है:

  $ scope.myArray = Pages.getAllPageCount ();  

अंत में जब मैं अंगुलियएसजेएस (मेरा .html) के साथ प्रदर्शित करता हूं।

  {{myArray}}  

यदि मेरे पास केवल मूल्य है, यह उदाहरण के लिए [30] प्रदर्शित करेगा। लेकिन मुझे नहीं चाहिए [ और ]

मैं इसे कैसे हटाऊं?

पुनश्च: मुझे वास्तव में इसकी आवश्यकता है आपकी सहायता के लिए धन्यवाद!

इसके बजाय {{MyArray}} , आप उपयोग कर सकते हैं: {{myArray.join (',')}}


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -