这是我的代码片段:
json.iddd = ~~(json.id);
console.log(typeof(json.iddd)); //shows number
new ResponseTabView(json.iddd); // backbone view
在我正在调用的视图中:
this.grid = new Backgrid.Grid({body : this.body, collection :this.collection, columns: this.columns});
我收到以下错误:
Uncaught TypeError: Object 5229d8fff4ae7a3803000023 has no method 'toFixed'
如何摆脱它?