<li style="padding-bottom: 0px; display: none;">
<span> Content </span>
</li>
Run Code Online (Sandbox Code Playgroud)
我想检查一下 display == none
我用下面的脚本得到了解决方案.
if($(this).closest('li').attr('style') =='padding-bottom: 0px; display: none;'){
// script
}
Run Code Online (Sandbox Code Playgroud)
任何其他简单的写作方式.谢谢
Angular 5 Material Spinner无法正常工作
app.module.ts
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
@NgModule({
imports: [
MatProgressSpinnerModule
]})
Run Code Online (Sandbox Code Playgroud)
component.ts
import { MatSpinner } from '@angular/material';
Run Code Online (Sandbox Code Playgroud)
component.html
<mat-spinner></mat-spinner>
Run Code Online (Sandbox Code Playgroud)
我错过了任何配置.?
在Reference中,它为Spinner生成一个SVG文件,但我在mat-spinner标签中看不到任何内容.
我想实现像这样的通知消息
"Success! Your Details Added"
"Warning! Something Went Wrong"
"Danger! You don't have access to this"
Run Code Online (Sandbox Code Playgroud)
我已经在我的应用程序中使用角度材料我可以使用'snack-bar'进行通知吗?
建议我是否有另一种方法来做到这一点.
子组件TS
import { Component, OnInit, Input, Output } from '@angular/core';
import { EventEmitter } from 'events';
export class ChildComponent implements OnInit {
@Output() OpenScheduleCall = new EventEmitter<boolean>();
onLog() {
this.OpenScheduleCall.emit(false);
}
}
Run Code Online (Sandbox Code Playgroud)
父组件HTML:
<div [(hidden)]="OpenScheduleCall">
// content
</div>
<app-schedule-call *ngIf="!!OpenScheduleCall" [prospectid]='prospectid' [(OpenScheduleCall)]="OpenScheduleCall"></app-schedule-call>
Run Code Online (Sandbox Code Playgroud)
我正在设置子组件中的值,但更改不会反映在父组件中
我正在尝试使用 Angular 创建证书生成应用程序
为此,我需要在证书上放置输入字段。(类似于拖放)。
我打算使用 div 和在类型脚本中使用动态表单从头开始构建,是否有任何插件可以创建带有拖放/在表单内添加字段元素的表单。
谁能提供有用的链接,
谢谢你。
我第一次在 Laravel 上工作
我必须在页眉和页脚中动态创建前端菜单 [类别列表将来自数据库]。我必须为此使用哪个控制器。?此框架中可用于将数据发送到页眉和页脚的任何通用控制器。
当我在 HomeController 索引 Action 中收到数据时,它仅可用于主页。
class HomeController {
public function index()
{
$categories = Category::get();
return view('home', compact('categories'));
}
}
Run Code Online (Sandbox Code Playgroud)
谢谢。
我在顶部导航栏中放下位置。在更改位置时,我必须根据该位置数据加载整个应用程序,因此我需要刷新所有组件数据,这就是为什么我要执行此步骤。
core.js:5847错误错误:未被捕获(承诺):错误:无法匹配任何路由。URL段:'RefreshComponent'错误:无法匹配任何路由。网址段:“ RefreshComponent”
constructor(
private router: Router,
) { }
Run Code Online (Sandbox Code Playgroud)
我用过javascript,setTimeout(() => { location.reload(); });它工作正常,我不想重新加载页面,只想刷新我在下面的代码中尝试过的组件。但是当我使用控制台错误来了。
changeLocation(locationData) {
this.router.navigateByUrl('/RefreshComponent', { skipLocationChange: true }).then(() => {
this.router.navigate([this.router.url]);
});
}
Run Code Online (Sandbox Code Playgroud)
我是否缺少任何配置。?
Jquery输入文本允许小数,值介于0.00和100之间
HTML:
<input name="score type="number" min="0.01" max="100" step="0.01">
Run Code Online (Sandbox Code Playgroud)
我输入"1111"时显示无效但我想点击提交按钮后验证
<input type="text" name="score">
<input type="submit">
Run Code Online (Sandbox Code Playgroud)
脚本:
if($(this).val()<= 0.01 && ($(this).val() <=100)){ // allow 0.01 to 100 100
return true;
}
Run Code Online (Sandbox Code Playgroud)
我想在字段中只允许小数
角日期管道未正确显示日期
我在页面列表上使用了日期日期管道。
{{ row.createdDate }} // 2019-11-04T06:32:24.352856
{{ row.createdDate | date: 'mm-dd-yyyy' }} // 32-04-2019
Run Code Online (Sandbox Code Playgroud)