- 简介:控制流停留在某个函数调用内,任务完成后返回
- 结果:通过函数返回值传递任务的执行结果
- 错误:通过抛出异常或者特殊返回值来表明任务失败
例子:
| # If you need help with this config, view the SignShop Quick Reference PDF located in the SignShop folder | |
| # You can also visit our Bukkit page at tiny.cc/SignShop | |
| # There are a few basic options to modify how SignShop acts globally | |
| # You can edit anything in this config and use "/signshop reload" to reload the config while the server is running | |
| #!/bin/bash | |
| # Dependencies: | |
| # * xdotool | |
| # * xclip | |
| # * kdialog or zenity | |
| # * perl (only if "sleep 0.3" (float) is not accepted) | |
| # Usage: | |
| # Bind this script to a keyboard shortcut and then press it in Minecraft. | |
| # Configuration: |
| /* | |
| Google+ Timetable => Get links of one's recent posts. | |
| Copyright (C) 2012 Jingqin Lynn | |
| Includes jQuery | |
| Copyright 2011, John Resig | |
| Dual licensed under the MIT or GPL Version 2 licenses. | |
| http://jquery.org/license | |
| Includes Sizzle.js |
| /* | |
| Google+ Post Censorship => Censor the words in your post. | |
| Copyright (C) 2012 Jingqin Lynn | |
| This program is free software: you can redistribute it and/or modify | |
| it under the terms of the GNU General Public License as published by | |
| the Free Software Foundation, either version 3 of the License, or | |
| (at your option) any later version. | |
| This program is distributed in the hope that it will be useful, |
| /* | |
| Google+ Inline Media => Reduce rich-media noise. | |
| Copyright (C) 2012 Jingqin Lynn | |
| Includes jQuery | |
| Copyright 2011, John Resig | |
| Dual licensed under the MIT or GPL Version 2 licenses. | |
| http://jquery.org/license | |
| Includes Sizzle.js |
| /* | |
| Google+ Toolkit => Handle Google+ DOM more easily. | |
| Copyright (C) 2012 Jingqin Lynn | |
| This program is free software: you can redistribute it and/or modify | |
| it under the terms of the GNU General Public License as published by | |
| the Free Software Foundation, either version 3 of the License, or | |
| (at your option) any later version. | |
| This program is distributed in the hope that it will be useful, |
| /* | |
| Google+ Fuu => Reply posts in one click. | |
| Copyright (C) 2012 Jingqin Lynn | |
| Includes Japansese translation of UI text. | |
| Copyright (C) 2012 +Cless Jiang < https://plus.google.com/114649741876253367865 > | |
| This program is free software: you can redistribute it and/or modify | |
| it under the terms of the GNU General Public License as published by | |
| the Free Software Foundation, either version 3 of the License, or |
| /* | |
| Google+ Conditional Fuu => Automatically reply posts on certain conditions. | |
| Copyright (C) 2012 Jingqin Lynn | |
| This program is free software: you can redistribute it and/or modify | |
| it under the terms of the GNU General Public License as published by | |
| the Free Software Foundation, either version 3 of the License, or | |
| (at your option) any later version. | |
| This program is distributed in the hope that it will be useful, |
| /* | |
| Google+ i18n => Internationalization and localization on Google+ | |
| Copyright (C) 2012 Jingqin Lynn | |
| Includes jQuery | |
| Copyright 2011, John Resig | |
| Dual licensed under the MIT or GPL Version 2 licenses. | |
| http://jquery.org/license | |
| Includes Sizzle.js |