什么是真正的Javascript协议? [英] What's the REAL deal with Javascript ?

查看:83
本文介绍了什么是真正的Javascript协议?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你真的必须使用像RegisterClientScriptBlock()这样的方法来获取客户端Javascript进入ASP.NET 2.0页面吗?对于任何超出

琐碎脚本的东西,这真是一个痛苦的过程,不是吗?


我想我不清楚为什么你不能放JS内联?难道只是得到

以及页面中的任何文字HTML吗?


有没有办法加载外部xxx.js文件进入你的代码?


感谢任何意见......


Liz

Do you really have to use these methods like RegisterClientScriptBlock() to
get client-side Javascript into an ASP.NET 2.0 page ? For anything beyond
trivial scripting, this is really a painful process, no ?

I guess I''m not clear why you can''t put JS inline ? Doesn''t it just get
emitted along with any literal HTML in your page ??

Is there a way to load an external xxx.js file into your code ?

Thanks for any input ...

Liz

推荐答案

你可以使用所有正常的js东西......

" Liz" < li*@tiredofspam.com在留言新闻中写道:Oo ************** @ TK2MSFTNGP04.phx.gbl ...
you can use all the normal js stuff...
"Liz" <li*@tiredofspam.comwrote in message news:Oo**************@TK2MSFTNGP04.phx.gbl...

你真的必须使用像RegisterClientScriptBlock()这样的方法来获取客户端Javascript到ASP.NET 2.0页面吗?对于任何超出

琐碎脚本的东西,这真是一个痛苦的过程,不是吗?


我想我不清楚为什么你不能放JS内联?难道只是得到

以及页面中的任何文字HTML吗?


有没有办法加载外部xxx.js文件进入你的代码?


感谢您的任何意见......


Liz

Do you really have to use these methods like RegisterClientScriptBlock() to
get client-side Javascript into an ASP.NET 2.0 page ? For anything beyond
trivial scripting, this is really a painful process, no ?

I guess I''m not clear why you can''t put JS inline ? Doesn''t it just get
emitted along with any literal HTML in your page ??

Is there a way to load an external xxx.js file into your code ?

Thanks for any input ...

Liz





" Jon Paal" < Jon [nospam] Paal @where dot在消息中写道

新闻:OJ ************** @ TK2MSFTNGP03.phx.gbl ...

"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot comwrote in message
news:OJ**************@TK2MSFTNGP03.phx.gbl...

你可以使用所有正常的js东西......
you can use all the normal js stuff...



真的吗?那么什么是Page的方法,比如RegisterClientScriptBlock()




L

really ? so what''s with the Page methods like "RegisterClientScriptBlock()"
?

L


" Liz" < li*@tiredofspam.com写了留言
"Liz" <li*@tiredofspam.comwrote in message



news:Oo ************** @ TK2MSFTNGP04.phx.gbl。 ..

news:Oo**************@TK2MSFTNGP04.phx.gbl...


你真的必须使用这些方法,如RegisterClientScriptBlock()
Do you really have to use these methods like RegisterClientScriptBlock()




to


将客户端Javascript导入ASP.NET 2.0页面?对于任何
get client-side Javascript into an ASP.NET 2.0 page ? For anything



超出

beyond


琐碎脚本,这真是一个痛苦的过程,不是吗?


我想我不清楚为什么你不能把JS内联?难道只是得到

以及页面中的任何文字HTML吗?


有没有办法加载外部xxx.js文件进入你的代码?


感谢您的任何意见......


Liz
trivial scripting, this is really a painful process, no ?

I guess I''m not clear why you can''t put JS inline ? Doesn''t it just get
emitted along with any literal HTML in your page ??

Is there a way to load an external xxx.js file into your code ?

Thanks for any input ...

Liz




" Liz" < li*@tiredofspam.com写信息

新闻:%2 **************** @ TK2MSFTNGP02.phx.gbl ...
"Liz" <li*@tiredofspam.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...

" Jon Paal" < Jon [nospam] Paal @where dot在消息中写道

新闻:OJ ************** @ TK2MSFTNGP03.phx.gbl ...
"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot comwrote in message
news:OJ**************@TK2MSFTNGP03.phx.gbl...

>你可以使用所有正常的js东西...
>you can use all the normal js stuff...



真的吗?


really ?



是。

Yes.


那么使用Page Register方法如RegisterClientScriptBlock() ;
so what''s with the Page methods like "RegisterClientScriptBlock()"



它允许您创建动态JavaScript。

It allows you to create dynamic JavaScript.


这篇关于什么是真正的Javascript协议?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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