您还应该能够编写自定义的AWK程序,以使用UNIX命令行执行复杂的文本处理。
You should also be able to write custom AWK programs to perform complex text processing from the UNIX command line.
现在,我们通过编写一个用于修改消息的简单中介处理程序将这一概念付诸实践;我们使用该中介来执行一个简单的文本消息的搜索和替换操作。
We will now put this concept into practice by writing a simple mediation handler to modify messages; the mediation will perform a simple search and replace of text messages.
如果用户改变了文本框中的值或切换了下拉列表中的选定元素,您就能够注册一个事件处理程序,引发事件时,执行代码。
If the user changes the value in a textbox or switches the selected element in a dropdown list, you can register an event handler and have code execute when the event is raised.
然后添加事件侦听程序以处理文本区域中的击键,并且在单击submit按钮后执行搜索。
Event listeners are then added to process the keystrokes in the text area, as well as executing the search when the Submit button is clicked.
然后添加事件侦听程序以处理文本区域中的击键,并且在单击submit按钮后执行搜索。
Event listeners are then added to process the keystrokes in the text area, as well as executing the search when the Submit button is clicked.
应用推荐