[英]How to see all references to variable in Js Chrome Developer Tool
I am debugging CKEditor and the Chrome developer tool doesn't show me which function is updated the value when stepping through....or i don't know how to see all the references pointing to the particular variable. 我正在调试CKEditor ,而Chrome开发人员工具不会向我显示在逐步执行时哪个函数会更新值。...或者我不知道如何查看指向特定变量的所有引用。 How to see all the reference to a particular variable, so I can detect the execution updating value.
如何查看对特定变量的所有引用,以便我可以检测到执行更新值。
For details, the update happens in the following code in the dom/element.js 有关详细信息,更新发生在dom / element.js中的以下代码中
setHtml: ( CKEDITOR.env.ie && CKEDITOR.env.version < 9 ) ?
function( html ) {
//this function is not called...
}
:
function( html ) {
//here someone is updating this.$.innerHTML something other than 'html' value
return ( this.$.innerHTML = html );
},
Particularly, i am interested who is updating "this.$.innerHtML value behind the scenes. Why is the return value in parentheses? 特别是,我对谁在幕后更新“ this。$。innerHtML值”感兴趣。为什么括号中的返回值是?
Thank you for help 谢谢你的帮助
This is plain old JavaScript. 这是普通的旧JavaScript。 There's nothing happening behind the scenes.
幕后什么都没有发生。 This line:
这行:
return ( this.$.innerHTML = html );
does 2 things: 做两件事:
this.$.innerHTML
to html
. this.$.innerHTML
设置为html
。 html
. html
的值。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.