[主观题]

Write a script. in PHP and Javascript. to accept two textarea's, slot and alternative by the name.

+ slot can contain many a lines, each line includes many words and is ended by a number

+ the chars in the slot can only be either alpha-numeric chars or squares or underlines

+ if a word in the slot is surrounded by underlines, it must start a new line in the alternatives,

followed by the detailed definition of the word

+ the square brackets should come in pairs

for example, the following is legal slot and alternative:

SLOT ALTERNATIVE

---------------------- --------------------------

| this is 1 | | _this_ th ee s |

| the is 1 | | |

| this's 2 | | |

| _this_ 2 | | |

---------------------- --------------------------

参考答案与解析:

相关试题

Write a script. to reverse (interchange

[主观题]Write a script. to reverse (interchange 1 with 0) the n-th bit of a m-bit binary number.

  • 查看答案
  • . 分别用 PHP 和Javascript. 来验证两个分别叫 slot 和 a

    [主观题]. 分别用 PHP 和Javascript. 来验证两个分别叫 slot 和 alternative 的文本框里面的内容:+ slot 可以包含许多行,每行又包含若干个单词,并且以数字结尾+ slot 中的每个单词只能由数字、字母、方括号和下划线构成+ 如果 slot 中的某个单词前后各有相同书面的下划线,则这个单词必须在 alternatives 另起一行,并带有其定义+ 方括号必须成对出现例如,下面的 slot 和 alternative 是正确的:SLOT ALTERNATIVE-----

  • 查看答案
  • 负责解释执行JavaScript. 代码的是 (40 ) 。 (40 )

    [单选题] 负责解释执行JavaScript. 代码的是 (40 ) 。(40 )A. Web 服务器 B. Web 浏览器C. Java 编译器 D. Java 虚拟机

  • 查看答案
  • dot net 组件如何与 JavaScript. 脚本交互;dot net 组

    [主观题]dot net 组件如何与 JavaScript. 脚本交互;dot net 组件如何调用JavaScript. 函数;JavaScript. 如何调用 dot net 公共属性和事件?

  • 查看答案
  • 请用javascript. 脚本实现弹出无边框窗口显示a.htm页

    [主观题]请用javascript. 脚本实现弹出无边框窗口显示a.htm页

  • 查看答案
  • 写出一个正则表达式,过虑网页上的所有 JS£¯VBS 脚本(即把 script.

    [主观题]写出一个正则表达式,过虑网页上的所有 JS/VBS 脚本(即把 script. 标记及其内容都去掉):()。

  • 查看答案
  • Directions:You are to write in no less t

    [试题]D.irections:You are to write in no less than 120 words about the title “Should National Holidays Be Longer?”Your composition should be based on the Chinese outline given below:1.近些年来,我国法定节假日得到了延长……2.谈谈你对这一现象的看法。

  • 查看答案
  • was to write a story or present it. My t

    [主观题]was to write a story or present it. My teachers 78_______

  • 查看答案
  • PHP

    [名词解释] PHP

  • 查看答案
  • javascript

    [名词解释] javascript

  • 查看答案
  • Write a script. in PHP and Javascript. t