
用到的方法:jquery的load()方法 定義:當(dāng)指定的元素(及子元素)已加載時(shí)山宾,會(huì)發(fā)生 load() 事件我擂。該事件適用于任何帶有 URL 的...
界面是由N多個(gè)組件組成陵叽,如果一個(gè)組件中修改了接口的內(nèi)容疏叨,其他組件需要調(diào)接口刷新數(shù)據(jù) myService.ts: import {Componen...
1.子獲取父實(shí)例(在子組件中改變父組件變量值) parent.html: {{num}} parent.ts: export class Par...
服務(wù)的作用:服務(wù)Service就是提供給APP數(shù)據(jù)模型的全局變量腌逢,而服務(wù)存在的目的就是對(duì)各個(gè)controller之間的交互提供了一個(gè)途徑浅萧。在an...
1.父?jìng)髯?(@input) parent.ts: export class ParentPage { menu:'菜單'; }parent....
1.首先是npm版本不匹配洼畅,進(jìn)行更新:npm install npm -g 2.node.js版本(8.6.幾)吩案,版本過(guò)低也不支持,從官網(wǎng)下載8...
一 IDEA 1.全局搜索關(guān)鍵字 ctrl+shift+r 2.格式化代碼快捷鍵 ctrl+alt+l 二.vsCode 1.格式化代碼快捷鍵 ...
1.獲取相同選擇器第一個(gè)dom元素 document.querySelector(selectors) 2.獲取所有相同選擇器的dom元素 do...