
Frontend
文章平均质量分 73
Angular + React.js
KnightHacker2077
CSNOOB
展开
-
UI/UX design
UI UX design lecture 557原创 2022-09-06 11:14:24 · 306 阅读 · 0 评论 -
RxJS Beginner Guide
RxJS tutorial原创 2022-07-17 10:44:41 · 112 阅读 · 0 评论 -
ngrx store 状态管理
ngrx/store原创 2022-07-16 11:59:34 · 163 阅读 · 0 评论 -
前端(Angular)状态管理
状态管理概念原创 2022-07-16 11:21:32 · 529 阅读 · 0 评论 -
Anguar routing
现学现卖原创 2022-07-06 01:11:19 · 115 阅读 · 0 评论 -
CSS Layout
Flexbox, grid and more..原创 2022-06-30 10:58:35 · 146 阅读 · 0 评论 -
CSS -- Margin Collapsing
Margin Collapsing Explained原创 2022-06-30 02:21:15 · 199 阅读 · 0 评论 -
CSS MegaDoc
All you need to kick start using CSS原创 2022-06-03 07:16:20 · 112 阅读 · 0 评论 -
HTML MegaDoc
FormHTML user input<form action="/action_page.php" method="get"> <label for="fname">First name:</label> <input type="text" id="fname" name="fname"><br><br> <label for="lname">Last name:</label>原创 2022-01-10 04:25:26 · 314 阅读 · 0 评论 -
Angular -- Template Variables
<input type="text" id="item_input #item>#item is an example of a template variable, used to capture the user input of <input> element.Template variables help you use data from one part of a template in another part of the template.Synt.原创 2022-05-31 13:03:36 · 247 阅读 · 0 评论 -
Angular -- Pipes
PIPE,翻译为管道。Angular 管道是编写可以在HTML组件中声明的显示值转换的方法。Format:{{interpolated_value | pipe_name}}Example: Date Pipe 日期转换管道 {{ value_expression | date [ : format [ : timezone [ : locale ] ] ] }} today: number = Date.now(); ...原创 2022-05-30 13:25:33 · 156 阅读 · 0 评论 -
React.js -- Useful Component Examples
Input box w/ data Keep track of which cell to edit via this.state.edit. Render an input field when displaying the table if the row and column indices match the cell the user double-clicked. Update the data array with the new value from the inp原创 2022-02-02 08:59:24 · 96 阅读 · 0 评论 -
React.js -- Component Lifecycle
MountingComponent added to DOMMethodcomponentDidMount(): doing initialization work that require DOM e.g. add listener, fetch data from server UpdatingsetState() is called or prop updatedMethodgetSnapshotBeforeUpdate(): doing saving work原创 2022-01-26 16:37:14 · 682 阅读 · 0 评论 -
React.js -- Component
2个方法建react component:Use function -- return the UI Use ES6 class that extends React.ComponentUsing created component原创 2022-01-26 08:52:21 · 1162 阅读 · 0 评论 -
React.js -- JSX
适用于react的javascript语法扩展用于生成react element logic,markup 相结合的语法Advantage简单 快 type safeBasic JSXconst element = <h1>Hello, world!</h1>;const element = <img src={user.avatarUrl} />;const element = ( <div> <.原创 2022-01-24 14:02:46 · 583 阅读 · 0 评论 -
React.js -- Getting Started
React is a Javascript library High performance frontend framework Use small and isolated pieces of UI code called “components”Initializae React Appnpx create-react-app my-appcd my-appnpm startApp structure manifest.json 指定了开始页面 ind...原创 2022-01-24 13:23:35 · 261 阅读 · 0 评论 -
Angular -- Service & Dependency Injection
Definition:Dependencies --services which have a functionality Functionality -- Something needed by components and directives in the application Injection-- A mechanism provided by Angular to provide services to components and directivesDependency...原创 2021-12-02 04:21:27 · 337 阅读 · 0 评论 -
Angular -- Directives
Directives are classes that add additional behavior to elements in your Angular applications.Attribute DirectivesListen to and modify the behavior of other HTML elements, attributes, properties, and components.NgClassAdd and remove multiple HT.原创 2021-12-02 04:08:59 · 401 阅读 · 0 评论 -
Angular -- Observable
Good for passing messages between parts of your application Used forevent handling, asynchronous programming, and handling multiple values.Observer PatternAn object, called thesubject, maintains a list of its dependents, calledobservers, and not...原创 2021-10-28 23:12:24 · 265 阅读 · 0 评论 -
Angular -- Data Binding
One-wayBindingOne direction: any changes in the component will directly reflect inside the HTML template but, vice-versa is not possible.String interpolation and property binding allow only one-way data binding.{{ 2 + 2 }} -- string interpolation .原创 2021-10-28 21:49:45 · 220 阅读 · 0 评论 -
Angular -- Lifecycle Hooks
AngularDoc LinkngOnChangeInvoked first timebeforengOnInitAND whenever the data-bound input properties changesdata-bound input: some data coming from outside components (parent component) Uses "SimpleChange" object to keep track of current and ...原创 2021-10-28 21:10:55 · 187 阅读 · 0 评论 -
Angular -- Basics
ComponentsA component is a TSclass which angular depend upon to create objects. You can build your own declarative components into bite-sized, reusable pieces.Data bindingData binding allows you to move your data from the JS code to the view, wit.原创 2021-09-11 00:32:20 · 436 阅读 · 0 评论