我在我的项目中使用Microsoft Chart控件,我想通过使用鼠标滚轮启用Chart Control中的缩放功能,我该如何实现?
但是用户不必点击图表,应该就像鼠标位置在我的图表上而不是从鼠标滚轮那个点开始它可以放大/缩小
对于以下代码,我想知道 ES6 类中这种行为背后的原因:
class One {
//why the following code is not allowed.
let check = false;
const PI = 3.14;
var v = 'Hello';
//why the following code is allowed.
chk = false;
Pi = 3.14;
vv = "Hi";
}
Run Code Online (Sandbox Code Playgroud)
我知道我可以编写如下代码,但我想知道上述代码背后的真正原因。
class Sample {
constructor(x, y) {
this.x= x;
this.y= y;
}
}
Run Code Online (Sandbox Code Playgroud) 我在Winform中使用后台工作线程,在我的Do_Work事件中我正在计算一些东西,我需要的是同时我想更新一个在main/UI线程中的标签?怎么实现这个?
我想从Do_Work事件更新我的标签......