我按照给出的说明anonymous text editor based on Writeurl IP在我的网站上嵌入here。有一些错误,请帮助清除......
nbe.site.embed_write(element or DOM id, {
id : 'fon5o6gtr3gh9gsl7kb2',
read : 'g4xhwwdi34hm19w9fcpm',
write : 'ppnx1ye1kl6unk10ov08'
});

<!DOCTYPE html>
<html>
<link rel="stylesheet" href="http://www.writeurl.com/style.css" type="text/css">
<script src="http://www.writeurl.com/script.js"></script>
<body>
<h1>Embed www.writeurl.com in HTML</h1>
<span id='fon5o6gtr3gh9gsl7kb2'>Test</span>
</body>
</html>
&#13;
答案 0 :(得分:0)
Hello Andrei Deinichenko,
问题是您没有在代码的JS部分中指定元素或ID。
您应该将“元素或DOM ID ”部分替换为您在下面使用的元素或DOM ID,在您的情况下, span id - &gt; <span id='fon5o6gtr3gh9gsl7kb2'>Test</span>
因此,代码的JS部分应如下所示:
nbe.site.embed_write(fon5o6gtr3gh9gsl7kb2, {
id : 'fon5o6gtr3gh9gsl7kb2',
read : 'g4xhwwdi34hm19w9fcpm',
write : 'ppnx1ye1kl6unk10ov08'
});
答案 1 :(得分:0)
可以将id替换为'test'
<!DOCTYPE html>
<html>
<link rel="stylesheet" href="http://www.writeurl.com/style.css" type="text/css">
<script src="http://www.writeurl.com/script.js"></script>
<body>
<h1>Embed www.writeurl.com in HTML</h1>
<span id='test'>Test</span>
</body>
</html>
nbe.site.embed_write(element or DOM id, {
id : 'fon5o6gtr3gh9gsl7kb2',
read : 'g4xhwwdi34hm19w9fcpm',
write : 'ppnx1ye1kl6unk10ov08'
});
<!DOCTYPE html>
<html>
<link rel="stylesheet" href="http://www.writeurl.com/style.css" type="text/css">
<script src="http://www.writeurl.com/script.js"></script>
<body>
<h1>Embed www.writeurl.com in HTML</h1>
<span id='fon5o6gtr3gh9gsl7kb2'>Test</span>
</body>
</html>
Rotation r = new Rotation();
r.rotateCw(img, null);