就是關(guān)于同一個頁面中多處使用Monaco editor 優(yōu)化的例子
monaco editor性能優(yōu)化適用場景 一個項(xiàng)目使用多個editor 優(yōu)化 1.單例模式:定義editor類,對實(shí)例進(jìn)行緩存,提高復(fù)用率2.通過append實(shí)例dom,盡量減少editor的重復(fù)創(chuàng)建 代碼
就是關(guān)于同一個頁面中多處使用Monaco editor 優(yōu)化的例子
monaco editor性能優(yōu)化適用場景 一個項(xiàng)目使用多個editor 優(yōu)化 1.單例模式:定義editor類,對實(shí)例進(jìn)行緩存,提高復(fù)用率2.通過append實(shí)例dom,盡量減少editor的重復(fù)創(chuàng)建 代碼
有木有完整一點(diǎn)的項(xiàng)目例子啊 想學(xué)習(xí)一下
monaco editor性能優(yōu)化適用場景 一個項(xiàng)目使用多個editor 優(yōu)化 1.單例模式:定義editor類,對實(shí)例進(jìn)行緩存,提高復(fù)用率2.通過append實(shí)例dom,盡量減少editor的重復(fù)創(chuàng)建 代碼