HTML或JavaScript [英] HTML or JavaScript

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

问题描述

我可以通过加载HTML页面或使用JavaScript构建

对话框来加载对话框。


当我看时,我应该怎么想?在这个选择?

解决方案

10月20日,10:45 * am,MartinRineh ... @ gmail.com写道:
< blockquote class =post_quotes>
我可以通过加载HTML页面或使用JavaScript构建

对话框来加载对话框。


什么当我看到这个选择时,我应该考虑一下吗?



这是你的选择...

如果您加载HTML,您将有额外的请求到您的网络服务器

处理,如果你使用JavaScript,你的客户将使用一些额外的CPU

时间......




GArlington < ga ******** @ tiscali.co.ukwrote in message

news:9f ******************** ************** @ m73g2000 hsh.googlegroups.com ...

10月20日上午10点45分,MartinRineh ... @ gmail.com写道:


我可以通过加载HTML页面或使用JavaScript构建

对话框来加载对话框。

当我看到这个选择时,我应该考虑什么?



这是你的选择...

如果您加载HTML,您将有额外的请求到您的网络服务器

处理,如果你使用JavaScript,你的客户将使用一些额外的CPU

时间......


和~10%的客户将从来没有看到它。


rf写道:


" GArlington" < ga ******** @ tiscali.co.ukwrote in message

news:9f ******************** ************** @ m73g2000 hsh.googlegroups.com ...

10月20日上午10点45分,MartinRineh ... @ gmail.com写道:


>我可以通过加载HTML页面或使用JavaScript构建
对话框来加载对话框。

当我看到这个选择时,我应该考虑一下吗?



这是你的选择...

如果您加载HTML,您将有一个额外的请求到您的Web服务器

处理,如果您使用JavaScript,您的客户将使用一些额外的CPU

时间...



将其加载到HTML中不需要额外的http请求。只需在HTML中输入

即可。需要更少的javascript下载。


....

< body>

< h1Heading< / h1> ;

< pyour content here< / p>


< div id =" panel">

这里的小组内容。

< / div>

< / body>

....


-

comp.lang.javascript FAQ< URL: http://jibbering.com/faq/ >


I can load a dialog by loading an HTML page or by constructing the
dialog with JavaScript.

What should I be thinking about when I look at this choice?

解决方案

On Oct 20, 10:45*am, MartinRineh...@gmail.com wrote:

I can load a dialog by loading an HTML page or by constructing the
dialog with JavaScript.

What should I be thinking about when I look at this choice?

It is your choice...
If you load HTML you will have an extra request to your web server to
deal with, if you use JavaScript your client will use some extra CPU
time...



"GArlington" <ga********@tiscali.co.ukwrote in message
news:9f**********************************@m73g2000 hsh.googlegroups.com...
On Oct 20, 10:45 am, MartinRineh...@gmail.com wrote:

I can load a dialog by loading an HTML page or by constructing the
dialog with JavaScript.

What should I be thinking about when I look at this choice?

It is your choice...
If you load HTML you will have an extra request to your web server to
deal with, if you use JavaScript your client will use some extra CPU
time...

And ~10% of the clients will never see it.


rf wrote:

"GArlington" <ga********@tiscali.co.ukwrote in message
news:9f**********************************@m73g2000 hsh.googlegroups.com...
On Oct 20, 10:45 am, MartinRineh...@gmail.com wrote:

>I can load a dialog by loading an HTML page or by constructing the
dialog with JavaScript.

What should I be thinking about when I look at this choice?


It is your choice...
If you load HTML you will have an extra request to your web server to
deal with, if you use JavaScript your client will use some extra CPU
time...

Loading it in HTML does not necessitate an extra http req. Just put it
in the HTML. Requires less javascript to be downloaded.

....
<body>
<h1Heading </h1>
<pyour content here </p>

<div id="panel">
panel content here.
</div>
</body>
....

--
comp.lang.javascript FAQ <URL: http://jibbering.com/faq/ >


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

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