![]() |
|
首页 │ Apache │ Linux│ Java│ MySQL│ 注册│帮助 | |||
相关问题
这是前些日子,村里的哥们给的,不知怎么搞的不能用,哪位老大帮忙改改
<iframe id="editor" width="500", height="400" >
</iframe>
<script>
editor.document.designMode="On";
function newline()
{
editor.focus();
range = editor.document.selection.createRange();//这个很重要
range.text=edit.text+"\n";
editor.focus();
}
function bold()
{
editor.focus();
range = editor.document.selection.createRange();
range.execCommand("Bold");
editor.focus();
}
function save()
{
document.form.msg.value=editor.doucment.body.innerHTML;
}
</script>
test2.php
<?php
echo $_POST['msg'];
?>
提问者:tmyu 06-02 14:02
答复

