package jsruntime import "log" func (jr *JsRuntime) EnableIntervalFun() { jr.runtime.Set("setInterval", func() { log.Println("禁用setInterval") }) jr.runtime.Set("clearInterval", func() { log.Println("禁用setInterval") }) }