前端This使用情況

2022-09-12 12:48:15 字數 479 閱讀 5098

一、普通函式的this指向window。

二、物件方法中this指向呼叫者。

三、建構函式中this。

1、function

newperson(name,age)

const p1=new person("張三",18);

return的內容為基本資料型別為p1,return的內容為引用資料型別為其本身

console.log(p1);

四,在**函式中this指向事件源。

事件源(誰觸發),事件型別(什麼型別的事件),**函式(**的結果)

五、箭頭函式沒有自己的this,指向外部函式的this。

六、call

bind this指向第乙個引數,但需要用閉包的形式進行呼叫

七、vue原型鏈中的this

ExecutorService使用情況

1 executorservice是是乙個介面,繼承了executor 2 而executor亦是乙個介面,該介面只包含了乙個方法void execute runnable command 3 executors 該類是乙個輔助類,此包中所定義的 executor executorservice s...

檢測USB使用情況

此方法放在任何地方,都可以正常.procedure tform1.usb var msg tmessage const dbt devicearrival 8000 dbt deviceremovecomplete 8004 dbt devnodes changed 0007 begin case ...

Linux 記憶體使用情況

linux系統如何檢視使用記憶體情況 root r2 free total used free shared buffers cached mem 215608 142680 72928 0 19736 86956 buffers cache 35988 179620 swap 1052248 0 ...