Canvas Learning: Drawing Circles and Arcs
Circles and arcs are one of the basic graphics. Today we will learn how to draw circles and arcs in Canvas. Drawing circles and arcs in Canvas line segment and rectangle Simple as that. In Canvas, the Canvas RenderingContext2D object provides two methods (arc() and arcTo()) to draw circles and arcs.
Basic knowledge of circles and arcs
Bef ...
Posted by revez2002 on Wed, 17 Jul 2019 18:42:20 -0700
Some pits encountered when front-end AJAX requests cross-domain
From: https://icewing.cc/post/about-cross-origin.html
Access-Control-Allow-Origin Problem
Access-Control-Allow-Headers Problem
cookie problem
OPTIONS request
Complete code
In the past two days, we have to study the cross-domain problem because we need to use angular's $http service to access data and the interface is under another ...
Posted by xbase on Wed, 17 Jul 2019 13:35:14 -0700
IOS Core Animation: Skills (4) Plane Vector-Elegant Graphic Commander
Data structure of vectors
Attributes of vectors
The coordinate expression of vectors
Vector equality
Vector Length
angle between two vectors
Angle of arrival of vectors
Exciting Realization Links
setter of Vector Length
Vector Computing
Vector addition
Vector subtraction
Vector Quantity Product
Vector inner product
Exciting Realization ...
Posted by polywog on Sun, 14 Jul 2019 15:40:52 -0700
Angular JS1.X Learning Notes 9 - Custom Directives (Part 2)
What a heavy rain it is today! In the previous section, factory functions in our instructions all return a worker function called a link function. In fact, our factory functions can also return an object, which can contain many attributes, which allows us to create more powerful instructions.
I. link attributes
The value of this property is a f ...
Posted by Cheez on Thu, 11 Jul 2019 16:21:06 -0700
Angular JS1.X Learning Notes 12-Ajax
Speaking of Ajax, you must be thinking about XMLHttpRequest, $. ajax(), cross-domain, asynchronous and so on. This article will discuss Ajax of Angular JS.
A simple example
<!DOCTYPE html>
<html lang="en" ng-app='myApp'>
<head>
<meta charset="UTF-8">
<title>ajax1</title>
</head>
<body n ...
Posted by cybtec on Thu, 11 Jul 2019 12:01:37 -0700
Angular 2 + Torture: (10) Preliminary understanding of animation, and step by step to write an animation effect
Preface
Transitional animation is indispensable in modern development, and rigidity and cool are closely related to it.
ng2.x animation-related api is incorporated into the core module @angular/core, which is independent after angular 4.
However, there is little difference in the way of writing, but the introduction has changed. Please refe ...
Posted by fordyh on Tue, 09 Jul 2019 15:32:47 -0700
21. UI-Grid cell navigation
Original: 202 Cell Navigation
This example uses the ui-grid-cellNav directive to add cell navigation.To enable, you must include the ui.grid.cellNav module, and you must include the ui-grid-cellNav directive on the table element.
Documentation of CellNav capabilities is provided in the api documentation, in particular:
columnDef
gridOption ...
Posted by vikela on Tue, 09 Jul 2019 10:24:30 -0700
Angular 4 Learning Notes (3): router
Router, or routing, is an important concept in the front end. In order to achieve decoupling, specific addresses and corresponding pages are separated by router.
Create a new detail folder in the src/app directory and create a file named gundam-detail.component.
import { Component } from '@angular/core';
import { Gundam } from '../../mo ...
Posted by tidalik on Mon, 08 Jul 2019 11:57:01 -0700
Vue realizes simple shopping cart function
Preface
In the process of developing the city, shopping cart functionalists are indispensable, such as Taobao, Tianmao, Jingdong, millet, Pingduo, Weiyi, Dangdang and other well-known shopping malls. Have you ever thought about developing a shopping cart function by yourself? We use vue,angular can be relatively easy to develop the shopping ca ...
Posted by tiggy on Fri, 05 Jul 2019 10:44:48 -0700
UI-Grid Import Data
Original: 207 Importing Data
The importer function allows data to be imported into csv or json format. The importer can use the menu in the table or accept custom files implemented by the user to select files in the computer.
The importer function imports files in json or csv format. If the requirement exists, it can be extended to other fil ...
Posted by trev on Wed, 03 Jul 2019 14:27:42 -0700