我正在尝试zindex使用打字稿设置一个类。但它不起作用。如果您有任何想法,请与我分享。
ngOnInit() { (<HTMLElement>document.querySelector('.pagemode')).style.z-index = 1;}
Run Code Online (Sandbox Code Playgroud) 我试图在 Visual Studio 代码扩展中获取项目文件夹路径,但很难找到答案。我的代码不起作用。我不知道这可能与否。我已经在谷歌检查过这个问题没有人回答。任何人都知道这一点,请帮助我找到答案。
扩展名.js:
var vscode = require("vscode");
var path = require("path");
exports.activate = context => {
const findPath =
vscode.commands.registerCommand('extension.search', () => {
let findprojectfolderPath = vscode.workspace.uri.fsPath; // Not working
console.log(findprojectfolderPath);
});
}
Run Code Online (Sandbox Code Playgroud) 我有一个#contentdiv和一个按钮组件。
单击按钮时,我想滚动到#content div的顶部。
HTML:
<div id="content">
Loren ipsum
</div>
<div (click)="toTop($event)">top</div>
Run Code Online (Sandbox Code Playgroud)
topscroll.component.ts:
<div id="content">
Loren ipsum
</div>
<div (click)="toTop($event)">top</div>
Run Code Online (Sandbox Code Playgroud) 我已经创建了全局弹出组件,我想动态设置宽度和高度以及标题,怎么做?模式:
<app-m [(visible)]="show" title="Modal" data-popup="width:300;height:250">
<h1>Sample Title 1</h1>
<button (click)="show= !show" class="btn">Close</button>
</app-m>
Run Code Online (Sandbox Code Playgroud) 我正在尝试安装angular cli,但在消息下方。如何为nodejs v6.xx安装特定的cli cli版本,哪个角度cli版本适用于nodsjs v6.xx?
You are running version v6.x.x of node.js, which is not supported by angular CLI v6. The official Node.js version that is supported is 8.x and greater.
Run Code Online (Sandbox Code Playgroud)