Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

173
Views
No se pueden leer las propiedades de jquery indefinido (leyendo '0')

tengo un mapa en la matriz pero por error No puedo leer las propiedades de indefinido (leyendo '0') gracias guíame

 axios({ method: "get", url: `${baseURL}/ShowProduct`, }) .then(res => { loading = false; loadingg(); if ((res.data.message) != "ProductNotFound") { // arrayrespons = res.data.message; res.data.message.map((item, index) => { listItems.push(item.id + "-" + item.ProductName) listIds.push(item.id); arrayrespons.push(item) let optionSelUnit = ``; if (item.unit != "" && item.unit[0].name != null) { // alert("ffg") unit = item.unit[0].parent.name; item.unit.map(itm => { optionSelUnit += `<option>${item.name}</option>` }) } else if (item.unit != "" && item.unit[0].name == null) { unit = item.unit[0].parent.name; } else if (item.unit == "") { unit = '-' } if (item.MasterChef == 1) { MasterChef = "checked" } else { MasterChef = "" } if (item.Active == 1) { Active = "فعال" } else { Active = "غیرفعال" } if (item.Description == null) { DescriptionShow = "توضیحاتی ثبت نشده است " } else { DescriptionShow = item.Description } DescriptionShow = moreCharacter(DescriptionShow); if (item.Description == null) { descShowProduct = "" } else { descShowProduct = item.Description } if ((item.DiscountId) != null) { Discount = item.Dis_price; MoneyUnit = item.MoneyUnit; } else if (item.festival_id != null) { Discount = item.festival_price; MoneyUnit = item.MoneyUnit; } else { Discount = "تخفیف ندارد" MoneyUnit = "" } if (item.Weight == null) { Weight = "-" } else { Weight = item.Weight }
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Cuando usa la función Mapa, debe devolver un nuevo objeto dentro de la función de flecha del mapa.

Ejemplo sencillo:

 menuList.map(menu => { return { MenuId: menu.id MenuName: menu.name } })

Esta parte asigna cada elemento en la lista de menús a un nuevo objeto. No devolvió el objeto asignado y simplemente lo insertó en otro objeto.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!