JQuery事件

Posted myblogou

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了JQuery事件相关的知识,希望对你有一定的参考价值。

   1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
   2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
   3 <head>
   4     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   5     <title>A Christmas Carol</title>
   6     <link rel="stylesheet" href="carol.css" type="text/css" />
   7     <script src="Scripts/jquery-1.4.1-vsdoc.js" type="text/javascript"></script>
   8     <script type="text/javascript">
   9         //DRY原则:Don‘t Repeat Yourself
  10         //通用的bind方法绑定事件
  11         //1.启用large按钮
  12 
  13         //$(document).ready(function () {
  14         //    $(‘#switcher-large‘).bind(‘click‘, function () {
  15         //        $(‘body‘).addClass(‘large‘);
  16         //    });
  17         //});
  18 
  19 
  20 
  21         //2.启用其它两个default和narrow按钮
  22         //$(document).ready(function(){
  23         //    $(‘#switcher-large‘).bind(‘click‘, function () {
  24         //        //体现jQuery的一个特点,连缀
  25         //        $(‘body‘).removeClass(‘narrow‘).addClass(‘large‘); 
  26         //    });
  27         //    $(‘#switcher-default‘).bind(‘click‘,function(){
  28         //        $(‘body‘).removeClass(‘large‘).removeClass(‘narrow‘);
  29         //    });
  30         //    $(‘#switcher-narrow‘).bind(‘click‘,function(){
  31         //        $(‘body‘).removeClass(‘large‘).addClass(‘narrow‘);
  32         //    });
  33         //});
  34 
  35 
  36         //3.加入当前按钮突出显示功能,this的使用
  37         //$(document).ready(function(){
  38         //    $(‘#switcher-large‘).click(function(){
  39         //        $(‘body‘).removeClass(‘narrow‘).addClass(‘large‘);
  40         //        $(‘#switcher .button‘).removeClass(‘selected‘);
  41         //        //this是dom的对象,包装成jQuery对象
  42         //        $(this).addClass(‘selected‘);
  43         //        //this.setAttribute(‘class‘, ‘selected‘);
  44         //        //this.className = ‘selected‘;
  45         //    });
  46 
  47         //    $(‘#switcher-default‘).bind(‘click‘,function(){
  48         //        $(‘body‘).removeClass(‘large‘).removeClass(‘narrow‘);
  49         //        $(‘#switcher .button‘).removeClass(‘selected‘);
  50         //        $(this).addClass(‘selected‘);
  51         //    });
  52 
  53         //    $(‘#switcher-narrow‘).click(function(){
  54         //        $(‘body‘).removeClass(‘large‘).addClass(‘narrow‘);
  55         //        $(‘#switcher .button‘).removeClass(‘selected‘);
  56         //        $(this).addClass(‘selected‘);
  57         //    });
  58         //});
  59 
  60 
  61         //4.提取相同代码
  62         //$(document).ready(function(){
  63         //    $(‘#switcher-large‘).bind(‘click‘,function(){
  64         //        $(‘body‘).removeClass(‘narrow‘).addClass(‘large‘);
  65         //        //$(‘#switcher .button‘).removeClass(‘selected‘);
  66         //        //$(this).addClass(‘selected‘);
  67         //    });
  68         //    $(‘#switcher-default‘).bind(‘click‘,function(){
  69         //        $(‘body‘).removeClass(‘large‘).removeClass(‘narrow‘);
  70         //        //$(‘#switcher .button‘).removeClass(‘selected‘);
  71         //        //$(this).addClass(‘selected‘);
  72         //    });
  73         //    $(‘#switcher-narrow‘).bind(‘click‘,function(){
  74         //        $(‘body‘).removeClass(‘large‘).addClass(‘narrow‘);
  75         //        //$(‘#switcher .button‘).removeClass(‘selected‘);
  76         //        //$(this).addClass(‘selected‘);
  77         //    });
  78         //    $(‘#switcher .button‘).bind(‘click‘,function(){
  79         //        $(‘#switcher .button‘).removeClass(‘selected‘);
  80         //        $(this).addClass(‘selected‘);//把this包装成了jQuery对象
  81         //    });
  82         //});
  83 
  84 
  85 
  86         //5.进一步简化
  87         //$(document).ready(function () {
  88         //    $(‘#switcher-large‘).bind(‘click‘, function () {
  89         //        //不给removeClass传参,也就是不指移除哪一个类,这样就全干掉了。
  90         //        $(‘body‘).removeClass().addClass(‘large‘);
  91         //    });
  92         //    $(‘#switcher-default‘).bind(‘click‘, function () {
  93         //        $(‘body‘).removeClass();
  94         //    });
  95         //    $(‘#switcher-narrow‘).bind(‘click‘, function () {
  96         //        $(‘body‘).removeClass().addClass(‘narrow‘);
  97         //    });
  98         //    $(‘#switcher .button‘).bind(‘click‘, function () {
  99         //    $(‘#switcher .button‘).removeClass(‘selected‘);
 100         //        $(this).addClass(‘selected‘);
 101         //    });
 102         //});
 103 
 104         //6.使用javascript Dom API来进一步简化代码
 105             //$(document).ready(function () {
 106             //    $(‘#switcher .button‘).bind(‘click‘, function () {
 107             //        $(‘body‘).removeClass();
 108             //        if (this.id == ‘switcher-narrow‘) { 
 109             //            $(‘body‘).addClass(‘narrow‘);
 110             //        }
 111             //        else if (this.id == ‘switcher-large‘) {
 112             //            $(‘body‘).addClass(‘large‘);
 113             //        }
 114             //        $(‘#switcher .button‘).removeClass(‘selected‘);
 115             //        $(this).addClass(‘selected‘);
 116             //    });
 117             //});
 118 
 119        
 120         
 121         //7.简写的事件
 122         //$(document).ready(function () {
 123         //    $(‘#switcher .button‘).click(function () {
 124         //        $(‘body‘).removeClass();
 125         //        if (this.id == ‘switcher-narrow‘) {
 126         //            $(‘body‘).addClass(‘narrow‘);
 127         //        }
 128         //        else if (this.id == ‘switcher-large‘) {
 129         //            $(‘body‘).addClass(‘large‘);
 130         //        }
 131         //        $(‘#switcher .button‘).removeClass(‘selected‘);
 132         //        $(this).addClass(‘selected‘);
 133         //    });
 134         //});
 135 
 136 
 137         //下面的7和9同时打开。
 138         //9.显示隐藏转换器,复合事件的使用
 139         //$(document).ready(function () {
 140         //    //toggle交替,有点像hover,当点#switcher h3时会交替的执行两个函数参数
 141         //    $(‘#switcher h3‘).toggle(
 142         //        function () {
 143         //            $(‘#switcher .button‘).addClass(‘hidden‘);
 144         //        },
 145         //        function () {
 146         //            $(‘#switcher .button‘).removeClass(‘hidden‘);
 147         //        }
 148         //    );
 149         //});
 150 
 151 
 152 
 153         //10.toggleClass //7和10同时打开。9关掉
 154         //toggleClass交替的替换类。如果有hidden这个类就去掉,如果没有就加上
 155         //$(document).ready(function () {
 156         //    $(‘#switcher h3‘).click(function () {
 157         //        $(‘#switcher .button‘).toggleClass(‘hidden‘);
 158         //    });
 159         //});
 160 
 161         //11.突出显示可单击的项, hover方法的使用,鼠标移到目标元素上时,执行第一个函数参数,移走时执行第二个函数参数
 162         $(document).ready(function () {
 163                 $(#switcher .button).hover(
 164                 function () {
 165                     $(this).addClass(hover);
 166                 },
 167                 function () {
 168                     $(this).removeClass(hover);
 169                 }
 170             );
 171         });
 172 
 173         //12事件冒泡的负作用,扩大Switcher隐藏显示单击范围
 174         //关掉10
 175         //$(document).ready(function () {
 176         //    $(‘#switcher‘).click(function () {
 177         //        $(‘#switcher .button‘).toggleClass(‘hidden‘);
 178         //    });
 179         //});
 180 
 181         //13用事件对象解决冒泡的负作用 关掉12
 182         //$(document).ready(function () {
 183         //    $(‘#switcher‘).click(function (event) {
 184         //        //target目标,event是事件。合起来就是事件对象的目标,比如你点了一个div,那这个div就是目标对象。当事件向上传导时,target就会变成你点的div的父元素。
 185         //        //注意,这里我们选中的是#switcher,一个大框,在switcher绑定的click事件,所以this就是switcher,如果你点了button,target是button但不是this.
 186         //        //event.target == this这个判断就让我们在点按钮时不去隐藏Switcher,因为点按钮时,目标是button而不是this(this在这里是Swithcer)
 187         //        //alert(this.id);
 188         //        //alert(event.target.id);
 189         //        if (event.target == this) {
 190         //            $(‘#switcher .button‘).toggleClass(‘hidden‘);
 191         //        }
 192         //    });
 193         //});
 194 
 195 
 196       
 197 
 198 
 199         ////14用事件对象解决冒泡的负作用:停止事件传播,可以关掉13,7
 200         //扩大switcher按钮范围
 201         //7.1
 202         $(document).ready(function () {
 203             $(#switcher).click(function () {
 204                 //$(‘#switcher .button‘).toggleClass(‘hidden‘);
 205             });
 206         });
 207         ////7.2
 208         $(document).ready(function () {
 209             $(#switcher .button).click(function (event) {
 210                 $(body).removeClass();
 211                 if (this.id == switcher-narrow) {
 212                     $(body).addClass(narrow);
 213                 }
 214                 else if (this.id == switcher-large) {
 215                     $(body).addClass(large);
 216                 }
 217                 $(#switcher .button).removeClass(selected);
 218                 $(this).addClass(selected);
 219                 //stopPropagation()停止事件传播,也就是当我们点button时,它上面的所有祖先元素将没有机会去响应click事件。
 220                 //event.stopPropagation();//执行15时注释这行
 221             });
 222         });
 223 
 224         //15 is方法的使用  注释掉 7.1和7.2代码中的最后一行
 225         $(document).ready(function () {
 226             $(#switcher).click(function (event) {
 227                 //$(event.target).is(‘.button‘):看一下事件的目标对象是不是button,我们这里取反了。也就是不是button时满足
 228                 if (!$(event.target).is(.button)) {
 229                    
 230                     $(#switcher .button).toggleClass(hidden);
 231                 }
 232             });
 233         });
 234 
 235         
 236 
 237       
 238 
 239 
 240        
 241         //18 自动激发事件(trigger:会触发一个对象上的事件,比如click,当trigger一执行时就好象真的有人点了那个对象一样,事件就激发了)
 242 
 243         $(document).ready(function () {
 244 
 245             $(#switcher).trigger(click);
 246         });
 247 
 248    
 249     </script>
 250 </head>
 251 <body>
 252     
 253     <div id="container">
 254         <p id="reBindSwitcher">重新绑定Switcher</p>
 255         <div id="switcher">
 256             <h3>Style Switcher</h3>
 257             <div class="button selected" id="switcher-default">
 258                 Default
 259             </div>
 260             <div class="button" id="switcher-narrow">
 261                 Narrow Column
 262             </div>
 263             <div class="button" id="switcher-large">
 264                 Large Print
 265             </div>
 266         </div>
 267         <div id="header">
 268             <h2>A Christmas Carol</h2>
 269             <h2 class="subtitle">In Prose, Being a Ghost Story of Christmas</h2>
 270             <div class="author">
 271                 by Charles Dickens
 272             </div>
 273         </div>
 274         <div class="chapter" id="chapter-preface">
 275             <h3 class="chapter-title">Preface</h3>
 276             <p>
 277                 I HAVE endeavoured in this Ghostly little book, to raise the Ghost of an Idea, which
 278                 shall not put my readers out of humour with themselves, with each other, with the
 279                 season, or with me. May it haunt their houses pleasantly, and no one wish to lay
 280                 it.
 281             </p>
 282             <p>
 283                 Their faithful Friend and Servant,
 284             </p>
 285             <p>
 286                 C. D.
 287             </p>
 288             <p>
 289                 December, 1843.
 290             </p>
 291         </div>
 292         <div class="chapter" id="chapter-1">
 293             <h3 class="chapter-title">Stave I: Marley‘s Ghost</h3>
 294             <p>
 295                 MARLEY was dead: to begin with. There is no doubt whatever about that. The register
 296                 of his burial was signed by the clergyman, the clerk, the undertaker, and the chief
 297                 mourner. Scrooge signed it: and Scrooge‘s name was good upon ‘Change, for anything
 298                 he chose to put his hand to. Old Marley was as dead as a door-nail.
 299             </p>
 300             <p>
 301                 Mind! I don‘t mean to say that I know, of my own knowledge, what there is particularly
 302                 dead about a door-nail. I might have been inclined, myself, to regard a coffin-nail
 303                 as the deadest piece of ironmongery in the trade. But the wisdom of our ancestors
 304                 is in the simile; and my unhallowed hands shall not disturb it, or the Country‘s
 305                 done for. You will therefore permit me to repeat, emphatically, that Marley was
 306                 as dead as a door-nail.
 307             </p>
 308             <p>
 309                 Scrooge knew he was dead? Of course he did. How could it be otherwise? Scrooge and
 310                 he were partners for I don‘t know how many years. Scrooge was his sole executor,
 311                 his sole administrator, his sole assign, his sole residuary legatee, his sole friend,
 312                 and sole mourner. And even Scrooge was not so dreadfully cut up by the sad event,
 313                 but that he was an excellent man of business on the very day of the funeral, and
 314                 solemnised it with an undoubted bargain.
 315             </p>
 316             <p>
 317                 The mention of Marley‘s funeral brings me back to the point I started from. There
 318                 is no doubt that Marley was dead. This must be distinctly understood, or nothing
 319                 wonderful can come of the story I am going to relate. If we were not perfectly convinced
 320                 that Hamlet‘s Father died before the play began, there would be nothing more remarkable
 321                 in his taking a stroll at night, in an easterly wind, upon his own ramparts, than
 322                 there would be in any other middle-aged gentleman rashly turning out after dark
 323                 in a breezy spot&mdash;say Saint Paul‘s Churchyard for instance&mdash; literally
 324                 to astonish his son‘s weak mind.
 325             </p>
 326             <p>
 327                 Scrooge never painted out Old Marley‘s name. There it stood, years afterwards, above
 328                 the warehouse door: Scrooge and Marley. The firm was known as Scrooge and Marley.
 329                 Sometimes people new to the business called Scrooge Scrooge, and sometimes Marley,
 330                 but he answered to both names. It was all the same to him.
 331             </p>
 332             <p>
 333                 Oh! But he was a tight-fisted hand at the grind-stone, Scrooge! a squeezing, wrenching,
 334                 grasping, scraping, clutching, covetous, old sinner! Hard and sharp as flint, from
 335                 which no steel had ever struck out generous fire; secret, and self-contained, and
 336                 solitary as an oyster. The cold within him froze his old features, nipped his pointed
 337                 nose, shrivelled his cheek, stiffened his gait; made his eyes red, his thin lips
 338                 blue; and spoke out shrewdly in his grating voice. A frosty rime was on his head,
 339                 and on his eyebrows, and his wiry chin. He carried his own low temperature always
 340                 about with him; he iced his office in the dog-days; and didn‘t thaw it one degree
 341                 at Christmas.
 342             </p>
 343             <p>
 344                 External heat and cold had little influence on Scrooge. No warmth could warm, no
 345                 wintry weather chill him. No wind that blew was bitterer than he, no falling snow
 346                 was more intent upon its purpose, no pelting rain less open to entreaty. Foul weather
 347                 didn‘t know where to have him. The heaviest rain, and snow, and hail, and sleet,
 348                 could boast of the advantage over him in only one respect. They often "came down"
 349                 handsomely, and Scrooge never did.
 350             </p>
 351             <p>
 352                 Nobody ever stopped him in the street to say, with gladsome looks, "My dear Scrooge,
 353                 how are you? When will you come to see me?" No beggars implored him to bestow a
 354                 trifle, no children asked him what it was o‘clock, no man or woman ever once in
 355                 all his life inquired the way to such and such a place, of Scrooge. Even the blind
 356                 men‘s dogs appeared to know him; and when they saw him coming on, would tug their
 357                 owners into doorways and up courts; and then would wag their tails as though they
 358                 said, "No eye at all is better than an evil eye, dark master!"
 359             </p>
 360             <p>
 361                 But what did Scrooge care! It was the very thing he liked. To edge his way along
 362                 the crowded paths of life, warning all human sympathy to keep its distance, was
 363                 what the knowing ones call "nuts" to Scrooge.
 364             </p>
 365             <p>
 366                 Once upon a time&mdash;of all the good days in the year, on Christmas Eve&mdash;old
 367                 Scrooge sat busy in his counting-house. It was cold, bleak, biting weather: foggy
 368                 withal: and he could hear the people in the court outside, go wheezing up and down,
 369                 beating their hands upon their breasts, and stamping their feet upon the pavement
 370                 stones to warm them. The city clocks had only just gone three, but it was quite
 371                 dark already&mdash; it had not been light all day&mdash;and candles were flaring
 372                 in the windows of the neighbouring offices, like ruddy smears upon the palpable
 373                 brown air. The fog came pouring in at every chink and keyhole, and was so dense
 374                 without, that although the court was of the narrowest, the houses opposite were
 375                 mere phantoms. To see the dingy cloud come drooping down, obscuring everything,
 376                 one might have thought that Nature lived hard by, and was brewing on a large scale.
 377             </p>
 378             <p>
 379                 The door of Scrooge‘s counting-house was open that he might keep his eye upon his
 380                 clerk, who in a dismal little cell beyond, a sort of tank, was copying letters.
 381                 Scrooge had a very small fire, but the clerk‘s fire was so very much smaller that
 382                 it looked like one coal. But he couldn‘t replenish it, for Scrooge kept the coal-box
 383                 in his own room; and so surely as the clerk came in with the shovel, the master
 384                 predicted that it would be necessary for them to part. Wherefore the clerk put on
 385                 his white comforter, and tried to warm himself at the candle; in which effort, not
 386                 being a man of a strong imagination, he failed.
 387             </p>
 388             <p>
 389                 "A merry Christmas, uncle! God save you!" cried a cheerful voice. It was the voice
 390                 of Scrooge‘s nephew, who came upon him so quickly that this was the first intimation
 391                 he had of his approach.
 392             </p>
 393             <p>
 394                 "Bah!" said Scrooge, "Humbug!"
 395             </p>
 396             <p>
 397                 He had so heated himself with rapid walking in the fog and frost, this nephew of
 398                 Scrooge‘s, that he was all in a glow; his face was ruddy and handsome; his eyes
 399                 sparkled, and his breath smoked again.
 400             </p>
 401             <p>
 402                 "Christmas a humbug, uncle!" said Scrooge‘s nephew. "You don‘t mean that, I am sure?"
 403             </p>
 404             <p>
 405                 "I do," said Scrooge. "Merry Christmas! What right have you to be merry? What reason
 406                 have you to be merry? You‘re poor enough."
 407             </p>
 408             <p>
 409                 "Come, then," returned the nephew gaily. "What right have you to be dismal? What
 410                 reason have you to be morose? You‘re rich enough."
 411             </p>
 412             <p>
 413                 Scrooge having no better answer ready on the spur of the moment, said, "Bah!" again;
 414                 and followed it up with "Humbug."
 415             </p>
 416             <p>
 417                 "Don‘t be cross, uncle!" said the nephew.
 418             </p>
 419             <p>
 420                 "What else can I be," returned the uncle, "when I live in such a world of fools
 421                 as this? Merry Christmas! Out upon merry Christmas! What‘s Christmas time to you
 422                 but a time for paying bills without money; a time for finding yourself a year older,
 423                 but not an hour richer; a time for balancing your books and having every item in
 424                 ‘em through a round dozen of months presented dead against you? If I could work
 425                 my will," said Scrooge indignantly, "every idiot who goes about with ‘Merry Christmas‘
 426                 on his lips, should be boiled with his own pudding, and buried with a stake of holly
 427                 through his heart. He should!"
 428             </p>
 429             <p>
 430                 "Uncle!" pleaded the nephew.
 431             </p>
 432             <p>
 433                 "Nephew!" returned the uncle sternly, "keep Christmas in your own way, and let me
 434                 keep it in mine."
 435             </p>
 436             <p>
 437                 "Keep it!" repeated Scrooge‘s nephew. "But you don‘t keep it."
 438             </p>
 439             <p>
 440                 "Let me leave it alone, then," said Scrooge. "Much good may it do you! Much good
 441                 it has ever done you!"
 442             </p>
 443             <p>
 444                 "There are many things from which I might have derived good, by which I have not
 445                 profited, I dare say," returned the nephew. "Christmas among the rest. But I am
 446                 sure I have always thought of Christmas time, when it has come round&mdash;apart
 447                 from the veneration due to its sacred name and origin, if anything belonging to
 448                 it can be apart from that&mdash;as a good time; a kind, forgiving, charitable, pleasant
 449                 time; the only time I know of, in the long calendar of the year, when men and women
 450                 seem by one consent to open their shut-up hearts freely, and to think of people
 451                 below them as if they really were fellow-passengers to the grave, and not another
 452                 race of creatures bound on other journeys. And therefore, uncle, though it has never
 453                 put a scrap of gold or silver in my pocket, I believe that it has done me good,
 454                 and will do me good; and I say, God bless it!"
 455             </p>
 456             <p>
 457                 The clerk in the Tank involuntarily applauded. Becoming immediately sensible of
 458                 the impropriety, he poked the fire, and extinguished the last frail spark for ever.
 459             </p>
 460             <p>
 461                 "Let me hear another sound from you," said Scrooge, "and you‘ll keep your Christmas
 462                 by losing your situation! You‘re quite a powerful speaker, sir," he added, turning
 463                 to his nephew. "I wonder you don‘t go into Parliament."
 464             </p>
 465             <p>
 466                 "Don‘t be angry, uncle. Come! Dine with us to-morrow."
 467             </p>
 468             <p>
 469                 Scrooge said that he would see him&mdash;yes, indeed he did. He went the whole length
 470                 of the expression, and said that he would see him in that extremity first.
 471             </p>
 472             <p>
 473                 "But why?" cried Scrooge‘s nephew. "Why?"
 474             </p>
 475             <p>
 476                 "Why did you get married?" said Scrooge.
 477             </p>
 478             <p>
 479                 "Because I fell in love."
 480             </p>
 481             <p>
 482                 "Because you fell in love!" growled Scrooge, as if that were the only one thing
 483                 in the world more ridiculous than a merry Christmas. "Good afternoon!"
 484             </p>
 485             <p>
 486                 "Nay, uncle, but you never came to see me before that happened. Why give it as a
 487                 reason for not coming now?"
 488             </p>
 489             <p>
 490                 "Good afternoon," said Scrooge.
 491             </p>
 492             <p>
 493                 "I want nothing from you; I ask nothing of you; why cannot we be friends?"
 494             </p>
 495             <p>
 496                 "Good afternoon," said Scrooge.
 497             </p>
 498             <p>
 499                 "I am sorry, with all my heart, to find you so resolute. We have never had any quarrel,
 500                 to which I have been a party. But I have made the trial in homage to Christmas,
 501                 and I‘ll keep my Christmas humour to the last. So A Merry Christmas, uncle!"
 502             </p>
 503             <p>
 504                 "Good afternoon!" said Scrooge.
 505             </p>
 506             <p>
 507                 "And A Happy New Year!"
 508             </p>
 509             <p>
 510                 "Good afternoon!" said Scrooge.
 511             </p>
 512             <p>
 513                 His nephew left the room without an angry word, notwithstanding. He stopped at the
 514                 outer door to bestow the greetings of the season on the clerk, who, cold as he was,
 515                 was warmer than Scrooge; for he returned them cordially.
 516             </p>
 517             <p>
 518                 "There‘s another fellow," muttered Scrooge; who overheard him: "my clerk, with fifteen
 519                 shillings a week, and a wife and family, talking about a merry Christmas. I‘ll retire
 520                 to Bedlam."
 521             </p>
 522             <p>
 523                 This lunatic, in letting Scrooge‘s nephew out, had let two other people in. They
 524                 were portly gentlemen, pleasant to behold, and now stood, with their hats off, in
 525                 Scrooge‘s office. They had books and papers in their hands, and bowed to him.
 526             </p>
 527             <p>
 528                 "Scrooge and Marley‘s, I believe," said one of the gentlemen, referring to his list.
 529                 "Have I the pleasure of addressing Mr. Scrooge, or Mr. Marley?"
 530             </p>
 531             <p>
 532                 "Mr. Marley has been dead these seven years," Scrooge replied. "He died seven years
 533                 ago, this very night."
 534             </p>
 535             <p>
 536                 "We have no doubt his liberality is well represented by his surviving partner,"
 537                 said the gentleman, presenting his credentials.
 538             </p>
 539             <p>
 540                 It certainly was; for they had been two kindred spirits. At the ominous word "liberality,"
 541                 Scrooge frowned, and shook his head, and handed the credentials back.
 542             </p>
 543             <p>
 544                 "At this festive season of the year, Mr. Scrooge," said the gentleman, taking up
 545                 a pen, "it is more than usually desirable that we should make some slight provision
 546                 for the Poor and destitute, who suffer greatly at the present time. Many thousands
 547                 are in want of common necessaries; hundreds of thousands are in want of common comforts,
 548                 sir."
 549             </p>
 550             <p>
 551                 "Are there no prisons?" asked Scrooge.
 552             </p>
 553             <p>
 554                 "Plenty of prisons," said the gentleman, laying down the pen again.
 555             </p>
 556             <p>
 557                 "And the Union workhouses?" demanded Scrooge. "Are they still in operation?"
 558             </p>
 559             <p>
 560                 "They are. Still," returned the gentleman, "I wish I could say they were not."
 561             </p>
 562             <p>
 563                 "The Treadmill and the Poor Law are in full vigour, then?" said Scrooge.
 564             </p>
 565             <p>
 566                 "Both very busy, sir."
 567             </p>
 568             <p>
 569                 "Oh! I was afraid, from what you said at first, that something had occurred to stop
 570                 them in their useful course," said Scrooge. "I‘m very glad to hear it."
 571             </p>
 572             <p>
 573                 "Under the impression that they scarcely furnish Christian cheer of mind or body
 574                 to the multitude," returned the gentleman, "a few of us are endeavouring to raise
 575                 a fund to buy the Poor some meat and drink, and means of warmth. We choose this
 576                 time, because it is a time, of all others, when Want is keenly felt, and Abundance
 577                 rejoices. What shall I put you down for?"
 578             </p>
 579             <p>
 580                 "Nothing!" Scrooge replied.
 581             </p>
 582             <p>
 583                 "You wish to be anonymous?"
 584             </p>
 585             <p>
 586                 "I wish to be left alone," said Scrooge. "Since you ask me what I wish, gentlemen,
 587                 that is my answer. I don‘t make merry myself at Christmas and I can‘t afford to
 588                 make idle people merry. I help to support the establishments I have mentioned&mdash;they
 589                 cost enough; and those who are badly off must go there."
 590             </p>
 591             <p>
 592                 "Many can‘t go there; and many would rather die."
 593             </p>
 594             <p>
 595                 "If they would rather die," said Scrooge, "they had better do it, and decrease the
 596                 surplus population. Besides&mdash;excuse me&mdash;I don‘t know that."
 597             </p>
 598             <p>
 599                 "But you might know it," observed the gentleman.
 600             </p>
 601             <p>
 602                 "It‘s not my business," Scrooge returned. "It‘s enough for a man to understand his
 603                 own business, and not to interfere with other people‘s. Mine occupies me constantly.
 604                 Good afternoon, gentlemen!"
 605             </p>
 606             <p>
 607                 Seeing clearly that it would be useless to pursue their point, the gentlemen withdrew.
 608                 Scrooge resumed his labours with an improved opinion of himself, and in a more facetious
 609                 temper than was usual with him.
 610             </p>
 611             <p>
 612                 Meanwhile the fog and darkness thickened so, that people ran about with flaring
 613                 links, proffering their services to go before horses in carriages, and conduct them
 614                 on their way. The ancient tower of a church, whose gruff old bell was always peeping
 615                 slily down at Scrooge out of a Gothic window in the wall, became invisible, and
 616                 struck the hours and quarters in the clouds, with tremulous vibrations afterwards
 617                 as if its teeth were chattering in its frozen head up there. The cold became intense.
 618                 In the main street, at the corner of the court, some labourers were repairing the
 619                 gas-pipes, and had lighted a great fire in a brazier, round which a party of ragged
 620                 men and boys were gathered: warming their hands and winking their eyes before the
 621                 blaze in rapture. The water-plug being left in solitude, its overflowings sullenly
 622                 congealed, and turned to misanthropic ice. The brightness of the shops where holly
 623                 sprigs and berries crackled in the lamp heat of the windows, made pale faces ruddy
 624                 as they passed. Poulterers‘ and grocers‘ trades became a splendid joke: a glorious
 625                 pageant, with which it was next to impossible to believe that such dull principles
 626                 as bargain and sale had anything to do. The Lord Mayor, in the stronghold of the
 627                 mighty Mansion House, gave orders to his fifty cooks and butlers to keep Christmas
 628                 as a Lord Mayor‘s household should; and even the little tailor, whom he had fined
 629                 five shillings on the previous Monday for being drunk and bloodthirsty in the streets,
 630                 stirred up to-morrow‘s pudding in his garret, while his lean wife and the baby sallied
 631                 out to buy the beef.
 632             </p>
 633             <p>
 634                 Foggier yet, and colder. Piercing, searching, biting cold. If the good Saint Dunstan
 635                 had but nipped the Evil Spirit‘s nose with a touch of such weather as that, instead
 636                 of using his familiar weapons, then indeed he would have roared to lusty purpose.
 637                 The owner of one scant young nose, gnawed and mumbled by the hungry cold as bones
 638                 are gnawed by dogs, stooped down at Scrooge‘s keyhole to regale him with a Christmas
 639                 carol: but at the first sound of
 640             </p>
 641             <div class="poem">
 642                 <div class="poem-line">
 643                     "God bless you, merry gentleman!
 644                 </div>
 645                 <div class="poem-line">
 646                     May nothing you dismay!"
 647                 </div>
 648             </div>
 649             <p>
 650                 Scrooge seized the ruler with such energy of action, that the singer fled in terror,
 651                 leaving the keyhole to the fog and even more congenial frost.
 652             </p>
 653             <p>
 654                 At length the hour of shutting up the counting-house arrived. With an ill-will Scrooge
 655                 dismounted from his stool, and tacitly admitted the fact to the expectant clerk
 656                 in the Tank, who instantly snuffed his candle out, and put on his hat.
 657             </p>
 658             <p>
 659                 "You‘ll want all day to-morrow, I suppose?" said Scrooge.
 660             </p>
 661             <p>
 662                 "If quite convenient, sir."
 663             </p>
 664             <p>
 665                 "It‘s not convenient," said Scrooge, "and it‘s not fair. If I was to stop half-a-crown
 666                 for it, you‘d think yourself ill-used, I‘ll be bound?"
 667             </p>
 668             <p>
 669                 The clerk smiled faintly.
 670             </p>
 671             <p>
 672                 "And yet," said Scrooge, "you don‘t think me ill-used, when I pay a day‘s wages
 673                 for no work."
 674             </p>
 675             <p>
 676                 The clerk observed that it was only once a year.
 677             </p>
 678             <p>
 679                 "A poor excuse for picking a man‘s pocket every twenty-fifth of December!" said
 680                 Scrooge, buttoning his great-coat to the chin. "But I suppose you must have the
 681                 whole day. Be here all the earlier next morning."
 682             </p>
 683             <p>
 684                 The clerk promised that he would; and Scrooge walked out with a growl. The office
 685                 was closed in a twinkling, and the clerk, with the long ends of his white comforter
 686                 dangling below his waist (for he boasted no great-coat), went down a slide on Cornhill,
 687                 at the end of a lane of boys, twenty times, in honour of its being Christmas Eve,
 688                 and then ran home to Camden Town as hard as he could pelt, to play at blindman‘s-buff.
 689             </p>
 690             <p>
 691                 Scrooge took his melancholy dinner in his usual melancholy tavern; and having read
 692                 all the newspapers, and beguiled the rest of the evening with his banker‘s-book,
 693                 went home to bed. He lived in chambers which had once belonged to his deceased partner.
 694                 They were a gloomy suite of rooms, in a lowering pile of building up a yard, where
 695                 it had so little business to be, that one could scarcely help fancying it must have
 696                 run there when it was a young house, playing at hide-and-seek with other houses,
 697                 and forgotten the way out again. It was old enough now, and dreary enough, for nobody
 698                 lived in it but Scrooge, the other rooms being all let out as offices. The yard
 699                 was so dark that even Scrooge, who knew its every stone, was fain to grope with
 700                 his hands. The fog and frost so hung about the black old gateway of the house, that
 701                 it seemed as if the Genius of the Weather sat in mournful meditation on the threshold.
 702             </p>
 703             <p>
 704                 Now, it is a fact, that there was nothing at all particular about the knocker on
 705                 the door, except that it was very large. It is also a fact, that Scrooge had seen
 706                 it, night and morning, during his whole residence in that place; also that Scrooge
 707                 had as little of what is called fancy about him as any man in the city of London,
 708                 even including&mdash;which is a bold word&mdash;the corporation, aldermen, and livery.
 709                 Let it also be borne in mind that Scrooge had not bestowed one thought on Marley,
 710                 since his last mention of his seven years‘ dead partner that afternoon. And then
 711                 let any man explain to me, if he can, how it happened that Scrooge, having his key
 712                 in the lock of the door, saw in the knocker, without its undergoing any intermediate
 713                 process of change&mdash;not a knocker, but Marley‘s face.
 714             </p>
 715             <p>
 716                 Marley‘s face. It was not in impenetrable shadow as the other objects in the yard
 717                 were, but had a dismal light about it, like a bad lobster in a dark cellar. It was
 718                 not angry or ferocious, but looked at Scrooge as Marley used to look: with ghostly
 719                 spectacles turned up on its ghostly forehead. The hair was curiously stirred, as
 720                 if by breath or hot air; and, though the eyes were wide open, they were perfectly
 721                 motionless. That, and its livid colour, made it horrible; but its horror seemed
 722                 to be in spite of the face and beyond its control, rather than a part of its own
 723                 expression.
 724             </p>
 725             <p>
 726                 As Scrooge looked fixedly at this phenomenon, it was a knocker again.
 727             </p>
 728             <p>
 729                 To say that he was not startled, or that his blood was not conscious of a terrible
 730                 sensation to which it had been a stranger from infancy, would be untrue. But he
 731                 put his hand upon the key he had relinquished, turned it sturdily, walked in, and
 732                 lighted his candle.
 733             </p>
 734             <p>
 735                 He did pause, with a moment‘s irresolution, before he shut the door; and he did
 736                 look cautiously behind it first, as if he half expected to be terrified with the
 737                 sight of Marley‘s pigtail sticking out into the hall. But there was nothing on the
 738                 back of the door, except the screws and nuts that held the knocker on, so he said
 739                 "Pooh, pooh!" and closed it with a bang.
 740             </p>
 741             <p>
 742                 The sound resounded through the house like thunder. Every room above, and every
 743                 cask in the wine-merchant‘s cellars below, appeared to have a separate peal of echoes
 744                 of its own. Scrooge was not a man to be frightened by echoes. He fastened the door,
 745                 and walked across the hall, and up the stairs; slowly too: trimming his candle as
 746                 he went.
 747             </p>
 748             <p>
 749                 You may talk vaguely about driving a coach-and-six up a good old flight of stairs,
 750                 or through a bad young Act of Parliament; but I mean to say you might have got a
 751                 hearse up that staircase, and taken it broadwise, with the splinter-bar towards
 752                 the wall and the door towards the balustrades: and done it easy. There was plenty
 753                 of width for that, and room to spare; which is perhaps the reason why Scrooge thought
 754                 he saw a locomotive hearse going on before him in the gloom. Half-a-dozen gas-lamps
 755                 out of the street wouldn‘t have lighted the entry too well, so you may suppose that
 756                 it was pretty dark with Scrooge‘s dip.
 757             </p>
 758             <p>
 759                 Up Scrooge went, not caring a button for that. Darkness is cheap, and Scrooge liked
 760                 it. But before he shut his heavy door, he walked through his rooms to see that all
 761                 was right. He had just enough recollection of the face to desire to do that.
 762             </p>
 763             <p>
 764                 Sitting-room, bedroom, lumber-room. All as they should be. Nobody under the table,
 765                 nobody under the sofa; a small fire in the grate; spoon and basin ready; and the
 766                 little saucepan of gruel (Scrooge had a cold in his head) upon the hob. Nobody under
 767                 the bed; nobody in the closet; nobody in his dressing-gown, which was hanging up
 768                 in a suspicious attitude against the wall. Lumber-room as usual. Old fire-guard,
 769                 old shoes, two fish-baskets, washing-stand on three legs, and a poker.
 770             </p>
 771             <p>
 772                 Quite satisfied, he closed his door, and locked himself in; double-locked himself
 773                 in, which was not his custom. Thus secured against surprise, he took off his cravat;
 774                 put on his dressing-gown and slippers, and his nightcap; and sat down before the
 775                 fire to take his gruel.
 776             </p>
 777             <p>
 778                 It was a very low fire indeed; nothing on such a bitter night. He was obliged to
 779                 sit close to it, and brood over it, before he could extract the least sensation
 780                 of warmth from such a handful of fuel. The fireplace was an old one, built by some
 781                 Dutch merchant long ago, and paved all round with quaint Dutch tiles, designed to
 782                 illustrate the Scriptures. There were Cains and Abels, Pharaoh‘s daughters; Queens
 783                 of Sheba, Angelic messengers descending through the air on clouds like feather-beds,
 784                 Abrahams, Belshazzars, Apostles putting off to sea in butter-boats, hundreds of
 785                 figures to attract his thoughts; and yet that face of Marley, seven years dead,
 786                 came like the ancient Prophet‘s rod, and swallowed up the whole. If each smooth
 787                 tile had been a blank at first, with power to shape some picture on its surface
 788                 from the disjointed fragments of his thoughts, there would have been a copy of old
 789                 Marley‘s head on every one.
 790             </p>
 791             <p>
 792                 "Humbug!" said Scrooge; and walked across the room.
 793             </p>
 794             <p>
 795                 After several turns, he sat down again. As he threw his head back in the chair,
 796                 his glance happened to rest upon a bell, a disused bell, that hung in the room,
 797                 and communicated for some purpose now forgotten with a chamber in the highest story
 798                 of the building. It was with great astonishment, and with a strange, inexplicable
 799                 dread, that as he looked, he saw this bell begin to swing. It swung so softly in
 800                 the outset that it scarcely made a sound; but soon it rang out loudly, and so did
 801                 every bell in the house.
 802             </p>
 803             <p>
 804                 This might have lasted half a minute, or a minute, but it seemed an hour. The bells
 805                 ceased as they had begun, together. They were succeeded by a clanking noise, deep
 806                 down below; as if some person were dragging a heavy chain over the casks in the
 807                 wine-merchant‘s cellar. Scrooge then remembered to have heard that ghosts in haunted
 808                 houses were described as dragging chains.
 809             </p>
 810             <p>
 811                 The cellar-door flew open with a booming sound, and then he heard the noise much
 812                 louder, on the floors below; then coming up the stairs; then coming straight towards
 813                 his door.
 814             </p>
 815             <p>
 816                 "It‘s humbug still!" said Scrooge. "I won‘t believe it."
 817             </p>
 818             <p>
 819                 His colour changed though, when, without a pause, it came on through the heavy door,
 820                 and passed into the room before his eyes. Upon its coming in, the dying flame leaped
 821                 up, as though it cried, "I know him; Marley‘s Ghost!" and fell again.
 822             </p>
 823             <p>
 824                 The same face: the very same. Marley in his pigtail, usual waistcoat, tights and
 825                 boots; the tassels on the latter bristling, like his pigtail, and his coat-skirts,
 826                 and the hair upon his head. The chain he drew was clasped about his middle. It was
 827                 long, and wound about him like a tail; and it was made (for Scrooge observed it
 828                 closely) of cash-boxes, keys, padlocks, ledgers, deeds, and heavy purses wrought
 829                 in steel. His body was transparent; so that Scrooge, observing him, and looking
 830                 through his waistcoat, could see the two buttons on his coat behind.
 831             </p>
 832             <p>
 833                 Scrooge had often heard it said that Marley had no bowels, but he had never believed
 834                 it until now.
 835             </p>
 836             <p>
 837                 No, nor did he believe it even now. Though he looked the phantom through and through,
 838                 and saw it standing before him; though he felt the chilling influence of its death-cold
 839                 eyes; and marked the very texture of the folded kerchief bound about its head and
 840                 chin, which wrapper he had not observed before; he was still incredulous, and fought
 841                 against his senses.
 842             </p>
 843             <p>
 844                 "How now!" said Scrooge, caustic and cold as ever. "What do you want with me?"
 845             </p>
 846             <p>
 847                 "Much!"&mdash;Marley‘s voice, no doubt about it.
 848             </p>
 849             <p>
 850                 "Who are you?"
 851             </p>
 852             <p>
 853                 "Ask me who I was."
 854             </p>
 855             <p>
 856                 "Who were you then?" said Scrooge, raising his voice. "You‘re particular, for a
 857                 shade." He was going to say "to a shade," but substituted this, as more appropriate.
 858             </p>
 859             <p>
 860                 "In life I was your partner, Jacob Marley."
 861             </p>
 862             <p>
 863                 "Can you&mdash;can you sit down?" asked Scrooge, looking doubtfully at him.
 864             </p>
 865             <p>
 866                 "I can."
 867             </p>
 868             <p>
 869                 "Do it, then."
 870             </p>
 871             <p>
 872                 Scrooge asked the question, because he didn‘t know whether a ghost so transparent
 873                 might find himself in a condition to take a chair; and felt that in the event of
 874                 its being impossible, it might involve the necessity of an embarrassing explanation.
 875                 But the ghost sat down on the opposite side of the fireplace, as if he were quite
 876                 used to it.
 877             </p>
 878             <p>
 879                 "You don‘t believe in me," observed the Ghost.
 880             </p>
 881             <p>
 882                 "I don‘t," said Scrooge.
 883             </p>
 884             <p>
 885                 "What evidence would you have of my reality beyond that of your senses?"
 886             </p>
 887             <p>
 888                 "I don‘t know," said Scrooge.
 889             </p>
 890             <p>
 891                 "Why do you doubt your senses?"
 892             </p>
 893             <p>
 894                 "Because," said Scrooge, "a little thing affects them. A slight disorder of the
 895                 stomach makes them cheats. You may be an undigested bit of beef, a blot of mustard,
 896                 a crumb of cheese, a fragment of an underdone potato. There‘s more of gravy than
 897                 of grave about you, whatever you are!"
 898             </p>
 899             <p>
 900                 Scrooge was not much in the habit of cracking jokes, nor did he feel, in his heart,
 901                 by any means waggish then. The truth is, that he tried to be smart, as a means of
 902                 distracting his own attention, and keeping down his terror; for the spectre‘s voice
 903                 disturbed the very marrow in his bones.
 904             </p>
 905             <p>
 906                 To sit, staring at those fixed glazed eyes, in silence for a moment, would play,
 907                 Scrooge felt, the very deuce with him. There was something very awful, too, in the
 908                 spectre‘s being provided with an infernal atmosphere of its own. Scrooge could not
 909                 feel it himself, but this was clearly the case; for though the Ghost sat perfectly
 910                 motionless, its hair, and skirts, and tassels, were still agitated as by the hot
 911                 vapour from an oven.
 912             </p>
 913             <p>
 914                 "You see this toothpick?" said Scrooge, returning quickly to the charge, for the
 915                 reason just assigned; and wishing, though it were only for a second, to divert the
 916                 vision‘s stony gaze from himself.
 917             </p>
 918             <p>
 919                 "I do," replied the Ghost.
 920             </p>
 921             <p>
 922                 "You are not looking at it," said Scrooge.
 923             </p>
 924             <p>
 925                 "But I see it," said the Ghost, "notwithstanding."
 926             </p>
 927             <p>
 928                 "Well!" returned Scrooge, "I have but to swallow this, and be for the rest of my
 929                 days persecuted by a legion of goblins, all of my own creation. Humbug, I tell you!
 930                 humbug!"
 931             </p>
 932             <p>
 933                 At this the spirit raised a frightful cry, and shook its chain with such a dismal
 934                 and appalling noise, that Scrooge held on tight to his chair, to save himself from
 935                 falling in a swoon. But how much greater was his horror, when the phantom taking
 936                 off the bandage round its head, as if it were too warm to wear indoors, its lower
 937                 jaw dropped down upon its breast!
 938             </p>
 939             <p>
 940                 Scrooge fell upon his knees, and clasped his hands before his face.
 941             </p>
 942             <p>
 943                 "Mercy!" he said. "Dreadful apparition, why do you trouble me?"
 944             </p>
 945             <p>
 946                 "Man of the worldly mind!" replied the Ghost, "do you believe in me or not?"
 947             </p>
 948             <p>
 949                 "I do," said Scrooge. "I must. But why do spirits walk the earth, and why do they
 950                 come to me?"
 951             </p>
 952             <p>
 953                 "It is required of every man," the Ghost returned, "that the spirit within him should
 954                 walk abroad among his fellowmen, and travel far and wide; and if that spirit goes
 955                 not forth in life, it is condemned to do so after death. It is doomed to wander
 956                 through the world&mdash;oh, woe is me!&mdash;and witness what it cannot share, but
 957                 might have shared on earth, and turned to happiness!"
 958             </p>
 959             <p>
 960                 Again the spectre raised a cry, and shook its chain and wrung its shadowy hands.
 961             </p>
 962             <p>
 963                 "You are fettered," said Scrooge, trembling. "Tell me why?"
 964             </p>
 965             <p>
 966                 "I wear the chain I forged in life," replied the Ghost. "I made it link by link,
 967                 and yard by yard; I girded it on of my own free will, and of my own free will I
 968                 wore it. Is its pattern strange to you?"
 969             </p>
 970             <p>
 971                 Scrooge trembled more and more.
 972             </p>
 973             <p>
 974                 "Or would you know," pursued the Ghost, "the weight and length of the strong coil
 975                 you bear yourself? It was full as heavy and as long as this, seven Christmas Eves
 976                 ago. You have laboured on it, since. It is a ponderous chain!"
 977             </p>
 978             <p>
 979                 Scrooge glanced about him on the floor, in the expectation of finding himself surrounded
 980                 by some fifty or sixty fathoms of iron cable: but he could see nothing.
 981             </p>
 982             <p>
 983                 "Jacob," he said, imploringly. "Old Jacob Marley, tell me more. Speak comfort to
 984                 me, Jacob!"
 985             </p>
 986             <p>
 987                 "I have none to give," the Ghost replied. "It comes from other regions, Ebenezer
 988                 Scrooge, and is conveyed by other ministers, to other kinds of men. Nor can I tell
 989                 you what I would. A very little more is all permitted to me. I cannot rest, I cannot
 990                 stay, I cannot linger anywhere. My spirit never walked beyond our counting-house&mdash;mark
 991                 me!&mdash;in life my spirit never roved beyond the narrow limits of our money-changing
 992                 hole; and weary journeys lie before me!"
 993             </p>
 994             <p>
 995                 It was a habit with Scrooge, whenever he became thoughtful, to put his hands in
 996                 his breeches pockets. Pondering on what the Ghost had said, he did so now, but without
 997                 lifting up his eyes, or getting off his knees.
 998             </p>
 999             <p>
1000                 "You must have been very slow about it, Jacob," Scrooge observed, in a business-like
1001                 manner, though with humility and deference.
1002             </p>
1003             <p>
1004                 "Slow!" the Ghost repeated.
1005             </p>
1006             <p>
1007                 "Seven years dead," mused Scrooge. "And travelling all the time!"
1008             </p>
1009             <p>
1010                 "The whole time," said the Ghost. "No rest, no peace. Incessant torture of remorse."
1011             </p>
1012             <p>
1013                 "You travel fast?" said Scrooge.
1014             </p>
1015             <p>
1016                 "On the wings of the wind," replied the Ghost.
1017             </p>
1018             <p>
1019                 "You might have got over a great quantity of ground in seven years," said Scrooge.
1020             </p>
1021             <p>
1022                 The Ghost, on hearing this, set up another cry, and clanked its chain so hideously
1023                 in the dead silence of the night, that the Ward would have been justified in indicting
1024                 it for a nuisance.
1025             </p>
1026             <p>
1027                 "Oh! captive, bound, and double-ironed," cried the phantom, "not to know, that ages
1028                 of incessant labour by immortal creatures, for this earth must pass into eternity
1029                 before the good of which it is susceptible is all developed. Not to know that any
1030                 Christian spirit working kindly in its little sphere, whatever it may be, will find
1031                 its mortal life too short for its vast means of usefulness. Not to know that no
1032                 space of regret can make amends for one life‘s opportunity misused! Yet such was
1033                 I! Oh! such was I!"
1034             </p>
1035             <p>
1036                 "But you were always a good man of business, Jacob," faltered Scrooge, who now began
1037                 to apply this to himself.
1038             </p>
1039             <p>
1040                 "Business!" cried the Ghost, wringing its hands again. "Mankind was my business.
1041                 The common welfare was my business; charity, mercy, forbearance, and benevolence,
1042                 were, all, my business. The dealings of my trade were but a drop of water in the
1043                 comprehensive ocean of my business!"
1044             </p>
1045             <p>
1046                 It held up its chain at arm‘s length, as if that were the cause of all its unavailing
1047                 grief, and flung it heavily upon the ground again.
1048             </p>
1049             <p>
1050                 "At this time of the rolling year," the spectre said, "I suffer most. Why did I
1051                 walk through crowds of fellow-beings with my eyes turned down, and never raise them
1052                 to that blessed Star which led the Wise Men to a poor abode! Were there no poor
1053                 homes to which its light would have conducted me!"
1054             </p>
1055             <p>
1056                 Scrooge was very much dismayed to hear the spectre going on at this rate, and began
1057                 to quake exceedingly.
1058             </p>
1059             <p>
1060                 "Hear me!" cried the Ghost. "My time is nearly gone."
1061             </p>
1062             <p>
1063                 "I will," said Scrooge. "But don‘t be hard upon me! Don‘t be flowery, Jacob! Pray!"
1064             </p>
1065             <p>
1066                 "How it is that I appear before you in a shape that you can see, I may not tell.
1067                 I have sat invisible beside you many and many a day."
1068             </p>
1069             <p>
1070                 It was not an agreeable idea. Scrooge shivered, and wiped the perspiration from
1071                 his brow.
1072             </p>
1073             <p>
1074                 "That is no light part of my penance," pursued the Ghost. "I am here to-night to
1075                 warn you, that you have yet a chance and hope of escaping my fate. A chance and
1076                 hope of my procuring, Ebenezer."
1077             </p>
1078             <p>
1079                 "You were always a good friend to me," said Scrooge. "Thank‘ee!"
1080             </p>
1081             <p>
1082                 "You will be haunted," resumed the Ghost, "by Three Spirits."
1083             </p>
1084             <p>
1085                 Scrooge‘s countenance fell almost as low as the Ghost‘s had done.
1086             </p>
1087             <p>
1088                 "Is that the chance and hope you mentioned, Jacob?" he demanded, in a faltering
1089                 voice.
1090             </p>
1091             <p>
1092                 "It is."
1093             </p>
1094             <p>
1095                 "I&mdash;I think I‘d rather not," said Scrooge.
1096             </p>
1097             <p>
1098                 "Without their visits," said the Ghost, "you cannot hope to shun the path I tread.
1099                 Expect the first to-morrow, when the bell tolls One."
1100             </p>
1101             <p>
1102                 "Couldn‘t I take ‘em all at once, and have it over, Jacob?" hinted Scrooge.
1103             </p>
1104             <p>
1105                 "Expect the second on the next night at the same hour. The third upon the next night
1106                 when the last stroke of Twelve has ceased to vibrate. Look to see me no more; and
1107                 look that, for your own sake, you remember what has passed between us!"
1108             </p>
1109             <p>
1110                 When it had said these words, the spectre took its wrapper from the table, and bound
1111                 it round its head, as before. Scrooge knew this, by the smart sound its teeth made,
1112                 when the jaws were brought together by the bandage. He ventured to raise his eyes
1113                 again, and found his supernatural visitor confronting him in an erect attitude,
1114                 with its chain wound over and about its arm.
1115             </p>
1116             <p>
1117                 The apparition walked backward from him; and at every step it took, the window raised
1118                 itself a little, so that when the spectre reached it, it was wide open.
1119             </p>
1120             <p>
1121                 It beckoned Scrooge to approach, which he did. When they were within two paces of
1122                 each other, Marley‘s Ghost held up its hand, warning him to come no nearer. Scrooge
1123                 stopped.
1124             </p>
1125             <p>
1126                 Not so much in obedience, as in surprise and fear: for on the raising of the hand,
1127                 he became sensible of confused noises in the air; incoherent sounds of lamentation
1128                 and regret; wailings inexpressibly sorrowful and self-accusatory. The spectre, after
1129                 listening for a moment, joined in the mournful dirge; and floated out upon the bleak,
1130                 dark night.
1131             </p>
1132             <p>
1133                 Scrooge followed to the window: desperate in his curiosity. He looked out.
1134             </p>
1135             <p>
1136                 The air was filled with phantoms, wandering hither and thither in restless haste,
1137                 and moaning as they went. Every one of them wore chains like Marley‘s Ghost; some
1138                 few (they might be guilty governments) were linked together; none were free. Many
1139                 had been personally known to Scrooge in their lives. He had been quite familiar
1140                 with one old ghost, in a white waistcoat, with a monstrous iron safe attached to
1141                 its ankle, who cried piteously at being unable to assist a wretched woman with an
1142                 infant, whom it saw below, upon a door-step. The misery with them all was, clearly,
1143                 that they sought to interfere, for good, in human matters, and had lost the power
1144                 for ever.
1145             </p>
1146             <p>
1147                 Whether these creatures faded into mist, or mist enshrouded them, he could not tell.
1148                 But they and their spirit voices faded together; and the night became as it had
1149                 been when he walked home.
1150             </p>
1151             <p>
1152                 Scrooge closed the window, and examined the door by which the Ghost had entered.
1153                 It was double-locked, as he had locked it with his own hands, and the bolts were
1154                 undisturbed. He tried to say "Humbug!" but stopped at the first syllable. And being,
1155                 from the emotion he had undergone, or the fatigues of the day, or his glimpse of
1156                 the Invisible World, or the dull conversation of the Ghost, or the lateness of the
1157                 hour, much in need of repose; went straight to bed, without undressing, and fell
1158                 asleep upon the instant.
1159             </p>
1160         </div>
1161     </div>
1162 </body>
1163 </html>

 

以上是关于JQuery事件的主要内容,如果未能解决你的问题,请参考以下文章

原生js如何绑定a连接点击事件?

jQuery应用 代码片段

Visual Studio 2012-2019的130多个jQuery代码片段。

markdown 在WordPress中使用jQuery代码片段

使用 NodeJS 和 JSDOM/jQuery 从代码片段构建 PHP 页面

很实用的JQuery代码片段(转)