我正在尝试使用jQuery的cos和sin函数在圆圈中对元素。我目前遇到的问题是,我的“点”没有正确地被标记。我是通过把点总数除以- 360度圆半径来计算角度的。这给我带来了麻烦,我似乎找不到答案。
var paper = Raphael('svg', '100%', '100%');
var circles = 20;
var angle = 360 / circles;
for (i = 0; i < circles; i++) {
var x = 200 + 100 * Math.sin(angle * i);
va
我是角质方面的初学者。我想在我的项目中创建一个新的组件,但是当我在我的index.html中使用它时,它不会呈现。
我使用了这个命令:
ng new test
cd test
ng generate component radio
在我编辑了我的index.html之后:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>test</title>
<base href="/">
<met