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

112
Views
this.model.get('duration') devuelve un valor diferente de json dict

tengo esta estructura:

 Object { cid: "c130", attributes: {…}, collection: {…}, _changing: false, _previousAttributes: {…}, changed: {}, _pending: false, _lastTeamSession: false, _events: {…}, _listenId: "l131", … }​ _changing: false​ _events: Object { all: (1) […], change: (1) […], destroy: (1) […], … }​ _lastTeamSession: false​ _listenId: "l131"​ _listeners: Object { l32: {…}, l133: {…} }​ _pending: false​ _previousAttributes: Object { duration: "00:00", value: 5, format: "1", … }​ attributes: Object { duration: "53:04", value: 5, format: "1", … }​​ athlete: Object { cid: "c11", _changing: false, id: 6, … }​​ duration: "53:04"​​ format: "1"​​ teamsession: Object { cid: "c8", __version: 43, _changing: false, … }​​ value: 5​​ <prototype>: Object { … }​ changed: Object { duration: "53:04" }​ cid: "c130"​ collection: Object { length: 1, models: (1) […], _listenId: "l31", … }​ <prototype>: Object { … }

Como puede ver en los atributos, tengo una clave de duración y su valor es "53:04".

Quiero asignar este valor a una variable usando: let duration = this.model.get("duration"); , pero obtengo que el valor de la duración es "00:00" y no entiendo por qué... ¿Alguien puede ayudarme?

about 4 years ago · Santiago Gelvez
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!