我想在用户发布或跳过Facebook中的Feed框时将我的文本框设置为空(空白).即时使用以下代码:
var attachment = {
.........some code here............
};
Facebook.streamPublish('', attachment,actionLinks,null,null,clear);
}
function clear()
{
document.getElementById("question").setTextValue() = "";
}
Run Code Online (Sandbox Code Playgroud)
但这不起作用.请帮我.....
Joh*_*ker 17
假设您要更改的元素具有您可以执行的ID"问题"
document.getElementById("question").value = "";
Run Code Online (Sandbox Code Playgroud)