如果您忽略函数的返回状态,当它们失败或部分成功的时候,您也许会迷失。
If you ignore the return status of functions, you may miss when they fail or partially succeed.
在成功打开信号量之后,这个函数就会返回这个信号量的句柄,这样就可以在后续的调用中使用它了。
Upon a successful opening, this function returns the handle to the semaphore so that it can be used in the subsequent calls.
一旦返回一个带有我们的用户名的表清单,就可以确认连接成功,从而可以在我们编写的脚本的剩余部分重用该连接函数。
Once we have confirmed that the connection is successful by returning a list of the tables with our user name, we can re-use that connection function within the rest of the scripts that we write.
贫民区是成功的劳动力市场和失灵的土地市场的一个函数。
Slums are a function of successful labor markets and failed land markets.
通过成功处理程序和错误处理程序函数执行查询。
The query is executed with a success handler and an error handler function.
成功遍历xml树之后,该函数就用PHP关联数组转换和存储了所有的XML元素(根元素和所有的孩子元素)。
At the end of a successful XML tree walk, this function will convert and store all the XML elements (the root element and all the child elements) in a PHP associative array.
代码中包含服务成功响应异步请求时调用的回调函数。
This code includes a callback function when your service responds successfully to your asynchronous request.
函数返回错误代码或成功代码;如果是错误代码,则代码本身可用于指出何处出错。
The function returns an error or success code; if it's an error code, the code itself can be used to figure out what went wrong.
在成功完成了的请求上调用abort不起任何作用,并且仅当浏览器收到一个对旧请求的延时响应的情况下,onreadystatechange才被设置为一个空函数。
Calling abort on a successfully completed request won't do anything and onreadystatechange is set to an empty function just in case the browser gets a delayed response for an old request.
和copy _ to_user一样,该函数在成功时,返回0,否则返回一个非零数,指出不能复制的字节数。
As with copy_to_user, the function returns zero on success and non-zero to indicate a failure to copy some number of bytes.
该函数在成功时,返回0,否则返回一个非零数,指出不能发送的字节数。
The function returns zero on success or non-zero to indicate the number of bytes that weren't transferred.
回调函数首先通过访问响应的第一个节点来确定调用是成功还是失败:PHP文件以一个名为successorerror的节点返回结果。
The callback function first determines whether the call was a success or a failure by accessing the first node in the response: the PHP file returns this result as a node named success or error.
那个操作成功后,该脚本调用updateauthorstable函数,使用这个新行更新显示。
When that operation is successful, it then calls the updateAuthorsTable function to update the display with the new row.
在这个函数成功返回之后,进程的新能力状态完全由cap _ p的内容决定。
The new capability state of the process will be completely determined by the contents of cap_p upon successful return from this function.
您只需做一件事:添加一个函数,以便装载成功的JSON请求,并填充hotels。
You have just one more thing to do: add a function to load the successful JSON request and populate the hotels.
成功连接上链接后,db 2将返回一个连接处理资源,该资源一直处于活动状态直至使用db2_close函数将其关闭。
Once the link is successfully connected, db2 returns a connection handle resource that remains active until it is closed using the db2_close function.
最后一个字段success是Web服务器返回成功响应时调用的函数。
The final field, success, is a function that will be called when the Web server returns a successful response.
如果调用成功(返回HTTP 200),则会调用update函数。
If the call is successful (returning an HTTP 200), the update function is called. Listing 15 USES Prototype for the Ajax call.
当Ajax请求从服务器成功返回时,该函数也采用另一函数作为一个回调。
The function also takes another function as a callback for when the Ajax request returns successfully from the server.
第三个参数也是可选的,是Ajax函数成功返回时所要执行的函数。
The third argument, also optional, is a function to execute if the Ajax function returns successfully.
函数semop原子地执行sops中包含的一组操作(只在所有操作都可以同时成功执行时,才会将所有的操作同时一次执行完)。
The function semop performs a set of operations contained in sops atomically (all operations performed at the same time only if they can be performed at the same time).
每一次当我们调用任何更新函数,或是更新成功完成后,我们写入一个日志消息。
Every time we call any of the updating functions and the update succeeds, we write a logging message.
如果成功,则此函数返回值缓存的大小,如果指定的名称并不是一个合法的环境变量名,则返回0。
This function returns the size of the value buffer on success and 0 if the name specified is not a valid environment variable name.
在一个函数中进行调用之后,如果成功的话,这个调用处理库中找到的该函数的第一个副本。
This call, should it succeed, yields the address of the first copy of the function found in a library after the one in which the call occurs.
如果成功地连接到数据库,这个函数会返回一个连接对象,后续的数据库读写操作需要使用这个对象。
Upon successfully connecting to the database, this function returns a connection object, which is required in the subsequent database read and write operations.
转向函数式编程的好处之一是让人们意识到,测试的存在是为了检查代码中成功发生的转变。
One of the benefits of switching to a functional mindset is the realization that tests exist to check that changes occur successfully in code.
通常,通过查找超类并确保存在匹配的超级构造函数,类型检查器确保这些超级构造函数调用会成功。
Normally, the type checker ensures that these super-constructor calls will succeed by looking up the superclass and making sure that a matching super-constructor exists.
如果连接成功,则PD o构造函数返回一个DB 2数据库连接资源。
The PDO constructor returns a DB2 database connection resource if the connection is successful.
成功时该函数返回0,一般情况下,get_user和put_user函数比它们的块复制副本要快一些,如果是小类型被移动的话,应该用它们。
This function returns zero on success. In general, the get_user and put_user functions are faster than their block copy counterparts and should be used if small types are moved.
如果函数成功,返回值将会是下列列表中的其中一个。(这里不一一列出)。
If the function succeeds, the return value is one of the following menu-item values.
应用推荐