This reports an error when using bind in ts. The case is as follows

function a () {console.log (this);} var tc: any = {a: 0}; var cz = a.bind (tc); cz ();

Jun.30,2022


interface ITc {
   a: number
}

//  this 
function a(this: ITc) { 
  console.log(this);
} 

var tc: ITc = { a: 0 }; 
var cz = a.bind(tc); 
cz();
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3c2cc-2b656.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3c2cc-2b656.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?