使用javascript更改svg行坐标

时间:2016-12-26 21:15:49

标签: javascript html

我想使用javascript更改svg行的x1,x2,y1,y2。

Error - Plugin error (you probably need to remove plugin files from your app): //github.com/srehanuddin/Cordova-Plugin-Bluetooth-Printer.git#1.0.0": support for subdirectories is deprecated and will be removed in Cordova@7 Fetching plugin "https://github.com/srehanuddin/Cordova-Plugin-Bluetooth-Printer.git" via git clone Cloning full repository Failed to fetch plugin https://github.com/srehanuddin/Cordova-Plugin-Bluetooth-Printer.git via git. Either there is a connection problems, or plugin spec is incorrect: Error: git: Command failed with exit code 1 Error output: error: pathspec '1.0.0' did not match any file(s) known to git. - 

但是,这不起作用。我必须使用var t=document.getElementsByTagName("line")[0]; t.x1="20"; t.y1="75"; t.x2="430"; t.y2="75"; 方法吗?

0 个答案:

没有答案