<!DOCTYPE html>
<html>
<head>
<title>document.write() Example</title>
</head>
<body>
<script type="text/javascript">
effect(function effectFn1() {
effect(function effectFn2() {})
})
const data = { foo: true, bar: true }
const obj = new Proxy(data, {
})
let temp1, temp2
effect(function effectFn1() {
console.log('effectFn1执行')
effect(function effectFn2() {
console.log('effectFn2执行')
})
temp1 = obj.foo
})
</script>
</body>
</html>
为什么:Uncaught ReferenceError: effect is not defined
最新推荐文章于 2023-11-21 12:45:55 发布