文件撰写 [英] document.write

查看:80
本文介绍了文件撰写的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想使用document.write()代替innerhtml。但是在编写新内容的过程中,一切都被清除了。

我正在丢失该对象的注册回调,如onclick等。

但是我想保留以前的东西。 />
这可能吗?

Hi,
I want to use document.write() in stead of innerhtml. But everything is getting cleared, while writing new content.
I am losing registered callbacks on that object like onclick etc.
But I want to preserve the previous things.
Is this possible?

推荐答案




我想要使用document.write()而不是innerhtml。但是在编写新内容的过程中,一切都被清除了。

我正在丢失该对象的注册回调,如onclick等。

但是我想保留以前的东西。 />
这可能吗?
Hi,
I want to use document.write() in stead of innerhtml. But everything is getting cleared, while writing new content.
I am losing registered callbacks on that object like onclick etc.
But I want to preserve the previous things.
Is this possible?



试试...........

try...........

展开 | 选择 | Wrap | 行号


Nope :(

它不起作用。

我想清除之前的内容,但不是已注册的onclick功能。

这保留了我的上传内容,但我仍然失去了onclick。
Nope :(
It does not work.
I want to clear previous content, but not the registered onclick functions.
This preserved my prev content, but still I lost onclick.



Nope :(

它不起作用。

我想清除以前的内容,但不是注册的onclick功能。

这保留了我的上传内容,但是sti我失去了onclick。
Nope :(
It does not work.
I want to clear previous content, but not the registered onclick functions.
This preserved my prev content, but still I lost onclick.



您丢失哪个控制注册OnClick?

在此处发布相关代码。

And精心讲述问题。


Debasis Jana。

On which Control you lost Registered "OnClick"?
Post the related code here.
And tell the problem elaborately.

Debasis Jana.


这篇关于文件撰写的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆