效果如下圖所示:(點擊技術介紹,跳到技術介紹模塊)
運用邏輯a標籤,href="#divid"
代碼如下:
<a href="#produce" class="aC"> 技術介紹</a>
<a href="#gread" class="aC"> 技術優勢</a>
<div id="produce">
技術介紹div
</div>
<div id="gread">
技術優勢div
</div>
效果如下圖所示:(點擊技術介紹,跳到技術介紹模塊)
運用邏輯a標籤,href="#divid"
代碼如下:
<a href="#produce" class="aC"> 技術介紹</a>
<a href="#gread" class="aC"> 技術優勢</a>
<div id="produce">
技術介紹div
</div>
<div id="gread">
技術優勢div
</div>
1. 安裝angular-in-memory-web-api npm install --save [email protected] 注意:此項操作必須安裝0.6.0以下,超過此版本會出現數據無
要求,angular6中屏蔽父元素的點擊事件($event.cancelBubble=true;) <div (click)="select($event)"> <div (click)="