求职面试问题 [英] Job Interview Questions

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

问题描述

最近在求职面试中,我被问到以下问题。我是

能够回答第一个,但第二个仍然困扰我。我很好b / b好奇,如果有人可以提供一点点内容:


1)执行
$时必须转义两个字符b $ b document.write()?


我回答了这个引号,单个和双个都需要转义

它们应该属于一个document.write的输出

声明。


他似乎对这个回复很满意。


2)在脚本块中执行

document.write()时必须做的主要事情是什么?


我没有任何线索。这个问题看起来很模糊......我不能而且仍然不会想到有这个问题。除了明显包括

之外,它还包含在< script>中。标签,或添加内容到将要输出

在document.write。


任何想法?

Recently in a job interview I was asked the following questions. I was
able to answer the first one, but the 2nd one still baffles me. I''m
curious if anyone can provide a little insite:

1) What two chars have to be escaped when performing a
document.write()?

I answered that quotes, both single and double need to be escaped when
they are supposed to be part of the output of a document.write
statement.

He seemed happy with that response.

2) What is the main thing that has to be done when performing a
document.write() in a script block?

I had no clue. The question seems pretty vague... I couldn''t and still
can''t think of what "has" to be done, besides the obvious of including
it inside a <script> tag, or adding content to what will be outputted
in the document.write.

Any ideas?

推荐答案

2005年6月19日14:16:43 -0700,楚 < RY ** @ thescottclan.net>写道:
On 19 Jun 2005 14:16:43 -0700, "Chu" <ry**@thescottclan.net> wrote:
最近在求职面试中,我被问到以下问题。我能够回答第一个,但第二个仍然让我困惑。我很好奇是否有人可以提供一点点内容:

1)执行
document.write()时必须转义哪两个字符?

我回答了引号,单引号和双引号都需要转义,因为它们应该是document.write
语句输出的一部分。


还有很多其他的东西,换行和其他类似的东西来自unicode例如
,其他取决于document.write是否<在XML org SGML文档中的
,但这可能是

无能力测试设置者想要的,javascript测试几乎是

普遍令人震惊。

2)在脚本块中执行
document.write()时需要做的主要事情是什么?
Recently in a job interview I was asked the following questions. I was
able to answer the first one, but the 2nd one still baffles me. I''m
curious if anyone can provide a little insite:

1) What two chars have to be escaped when performing a
document.write()?

I answered that quotes, both single and double need to be escaped when
they are supposed to be part of the output of a document.write
statement.
There''s lots of others too, newlines and other newline like things
from unicode for example, others depending on if the document.write is
inside an XML org SGML document, but that''s probably what the
incompetent test setter was wanting, javascript tests are almost
universally appalling.
2) What is the main thing that has to be done when performing a
document.write() in a script block?




没什么,这是一个胡言乱语的问题,这个男人要么完全无知,要么试图让你看到你的反应。


Jim。



nothing, it''s a gibberish question, the man is either completely
clueless, or trying to throw you to see your reaction.

Jim.


Quoth Chu:
Quoth Chu:
2)执行
document.write时必须做的主要事情是什么()在脚本块中?
2) What is the main thing that has to be done when performing a
document.write() in a script block?




当然要刷新缓冲区。


-

\\kristian



Flush the buffer, of course.

--
\\kristian


流感sh缓冲区???我觉得这些都是自动完成的......

被授予,也许你只是乱搞,因为问题本身已经

没有真正的答案?

Flush the buffer??? I would thing that''s all done automatically...
granted, maybe you are just messing around as the question itself has
no real answer?


这篇关于求职面试问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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