我是HTML5 Canvas
的新用户,我希望在mouse up
object
(line or circle
...)$(function () {
var canvas = new fabric.Canvas('c');
var hi = new fabric.Text('hello, world.', {
left: canvas.getWidth() / 2,
top: canvas.getHeight() / 2
});
canvas.on('mouse:move', function(options) {
// Something here to send params to a server (127.0.0.1 for exemple)
});
上向服务器发送一个值,你有什么想法吗?
谢谢
这是我的代码
{{1}}