JavaScript AngularJS Brackets Array -


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

  myArray.push (pageCount);  

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

  $ scope.myArray = Pages.getAllPageCount ();  

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

  {{myArray}}  

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

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

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

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


Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -