????????');" target="_self">????????????????????λ??????????????????????????????????д?????????????????????????????????????????????д???????????????????????????????????????д??????????????????????????????
????????
?????????????????????????????????????????????????????????????????е??????????????????????????????????????????????????????????????????Щ????????
????????????????????
???????????????????????????????????????????????????????????????????????????????????????
????????????????????????????????????е???????????????????????????????????????????????????????????
????1?????????????
??????????????????????????????????????????????????????????д?????磺
????1 public void SendMessage ();
????2 public void CalculatePrice ();
??????C#?У??????????????????????????????????JS?У???????????????????????????
????2???????????
?????????????????????????????????????????????????????????????????Сд?????浥?????????д?????磺
????1 var sendMessage = function () {};
????2 var calculatePrice = function () {};
??????????????????????Ρ??????????????????????????JS?У????????????????????
????????????????????????????????????????????????淶??
??????????????????????????????????????
?????е??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????t?????????????????????????????飬???????????????????????????
????????????????????????????????????????????????????????????????????????????
????1 // ???????????????????
????2 var count = function addComment() {};
????3
????4 // ???????????????
????5 var count = function addCommentAndReturnCount() {};
???????????????????????????п????????????????????????????????????????????????????????????????????????????????????ú???????t?????????????????顣???????????????????????÷?????£???????????д?????????????????????????
????????????????????
????????????????????????????????????????????????????????????????????????????????????????顣
???????????????????Щ??????????
????1????????????????????
?????????????????????????????????????????????????????????get???????????????????о????????????????????????????????????????get?е????????????????????????????????
??????1?????????????
????1 Person.prototype.getFullName = function() {
????2     return this.firstName = this.lastName;
????3 }
??????2?????????????
????1 var fetchPersons = function () {
????2     ...
????3     $.ajax({
????4     })
????5 }
??????3???????洢????????
????1 var loadPersons = function () {};
??????4???????????????
????1 var calculateTotal = function () {};
??????5?????????в???????
????1 var findSth = function (arr) {};
??????6?????Щ???????????
????1 var createSth = function (data) {};
????2 var buildSth = function (data) {};
????3 var parseSth = function(data) {};
???????????????????????????????????????????????????????????????????????????
????????????????Щ????????????????ο????
????1 add/remove        increment/decrement       open/close
????2 begin/end            insert/delete                      show/hide
????3 create/destory    lock/unlock                        source/target
????4 first/last              min/max                             star/stop
????5 get/put                next/previous                     up/down
????6 get/set                old/new
????????????????????????????????
??????????????????????????????????У????????????????????μ?????????????
??????????????????????????????????????????????????????????????Щ????????????????????У??е?????????????????????????????????磺
????1 public static Product[] ProductsGet(){};
????2 public static Product[] ProductsDel(){};
????3 public static Customer[] CustomerDel(){};
????4 public static Customer[] CustomerDel(){};
?????????????????????????????ProductsGet???????????????????????????
????????????????????????????????????????????????????
????????????
?????????????????ú???????????????????????????????????????????????????????涼?????????????????????????????????????????ú??????????Щ????
????????????
????????????????????????????????????????????????????????в????б?????????????????????????????????2????????????
????????????????????????????????????????????????
????1 var count = 0;
????2 var unitPrice = 1.5;
????3 ....
????4 ...
????5 var calculatePrice = function () {
????6     return count * unitPrice;
????7 }
??????????????У????????calculatePrice??????????????????????????κβ?????????????????????unitPrice??count???м????????????????????????????????????ü?????????????κβ???????????????????????bug?????????????????????????????????????????е????????????????????????????????????????????
????1 var calculatePrice = function(count?? unitPrice) {
????2     return count * unitPrice;
????3 }
???????????£?????????????????????????????е????????????????????????????????????????????????????????????????????????????????
???????????????????????????????????????????£??????????????????á?????????????????????????????????7??????????????????????ο???
?????е??????????????????ó???10?????????????????????£?????????????????????????????????????????????????????
????????????????????????????????б??????????漰????????????????????????????????????????????????г???????????????磺
????1 var filterHotel = function (city?? checkIn?? checkOut?? price?? star?? position?? wifi?? meal?? sort?? pageIndex) {}
?????????????????????????е???????????У????????????????????λ????????wifi??????????????????????????????????????????????????????£?????????????Щ????????????????????
????1 function DatePlace (city?? checkIn?? checkOut){
????2     this.city = city;
????3     this.checkIn = checkIn;
????4     this.checkOut = checkOut
????5 }
????6
????7 function HotelFeature (price?? star?? position?? wifi?? meal){
????8     this.price = price;
????9     this.star = star;
????10     this.position = position;
????11     this.wifi = wifi;
????12     this.meal = meal;
????13 }
????14
????15 var filterHotel = function (datePlce?? hotelFeature?? sort?? pageIndex) {};
????????????????????????????????????????????????????????????????????????????????