插件:http ://www.zazar.net/developers/jquery/zweatherfeed/
该插件有两个参数:一个必需的数组“位置”和一个可选的“选项”(没有定义类型)。对于“选项”,给出了“插件选项”列表(请参见上面的链接)。
我想将“unit”的选项设置为“f”,但将参数作为对象传递(按照 jquery 中的正常情况?)不起作用,也没有在 Firebug 中记录任何错误。
<script type='text/javascript'>
jQuery(document).ready(function () {
jQuery('.site-description').weatherfeed({
location : ['UKXX0085'],
unit : 'f'
});
});