Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/419.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 为什么需要输入字段来运行Raphael?_Javascript_Jquery_Raphael_Graphael - Fatal编程技术网

Javascript 为什么需要输入字段来运行Raphael?

Javascript 为什么需要输入字段来运行Raphael?,javascript,jquery,raphael,graphael,Javascript,Jquery,Raphael,Graphael,为什么需要输入字段来运行Raphael? 我刚刚用另一个鼓舞人心的代码构建了拉斐尔动画。自定义代码运行良好,但不幸的是,没有输入字段,代码就无法运行 <input type="text" value="70" id="radius12"> <input type="text" value="#fff" id="color"> 演示 有人知道为什么有必要吗?你的代码中有小的打字错误,输入字段对拉斐尔来说是不必要的。当您给出时,拉斐尔假定颜色变量作为您的输入字段 col

为什么需要输入字段来运行Raphael? 我刚刚用另一个鼓舞人心的代码构建了拉斐尔动画。自定义代码运行良好,但不幸的是,没有输入字段,代码就无法运行

<input type="text" value="70" id="radius12">
<input type="text" value="#fff" id="color">

演示
有人知道为什么有必要吗?

你的代码中有小的打字错误,输入字段对拉斐尔来说是不必要的。当您给出
时,拉斐尔假定颜色变量作为您的输入字段

colour = "#000",
将此代码更改为

color = "#000",
更新