熱騰騰的代碼:
. 代碼如下:
<script type="text/javascript">
$.extend({
testgogo: function (options) {
var defaults = {
name:"Charles",
year:"22",
say:"Sandy is so beautiful!"
};
var opts = $.extend(defaults, options);
alert(defaults.name+"說:"+defaults.say);
}
});
$.testgogo({ });
</script>