1.获取本地的镜像地址
npm get registry
2.设置成淘宝的镜像源
npm config set registry http://registry.npm.taobao.org/
2.设置成原本的镜像源 即nodejs的默认镜像源
npm config set registry https://registry.npmjs.org/
npm install --save node-html-parser
<!-- 竣工订单详情页面 --> <div class="fn-clear"> <h4 class="ui-color-middle-blue fn-left ui-busi-title">活动列表</h4> </div> <div id="custBillDetailInfo1"> <div class="fn-clear ui-mt-10 ui-ml-15 ui-mr-15"> <div class="table-responsive"> <div class="ui-table-nowrap ui-table-nowrap"> <table class="table table-bordered"> <tbody> <thead class="ui-bg-light-grey ui-color-deep-grey"> <tr> <th>类型</th> <th>策划名称</th> <th>策划ID</th> <th>生效时间</th> <th>失效时间</th> </tr> </thead> <tr class="thisRevoke ui-bg-light-blue "> <td>90元话费券</td> <td>90元话费券</td> <td class="thisOfferId">310000403710</td> <td>2022-05-06 00:04:34</td> <td>2022-06-01 00:00:00</td> </tr> <tr class="thisRevoke ui-bg-light-blue "> <td>全家包升级5G资费档-新</td> <td>全家包升级5G资费档-新</td> <td class="thisOfferId">310000576904</td> <td>2021-09-23 10:56:04</td> <td>2023-09-01 00:00:00</td> </tr> <tr class="thisRevoke ui-bg-light-blue "> <td>副卡方案优惠活动20GB(次月生效)-24个月</td> <td>副卡方案优惠活动20GB(次月生效)-24个月</td> <td class="thisOfferId">310000518302</td> <td>2021-09-23 13:28:26</td> <td>2023-09-01 00:00:00</td> </tr> <tr class="thisRevoke ui-bg-light-blue "> <td>家庭终端优惠购20元档</td> <td>家庭终端优惠购20元档</td> <td class="thisOfferId">310000521702</td> <td>2021-09-23 10:55:38</td> <td>2023-09-01 00:00:00</td> </tr> <tr class="thisRevoke ui-bg-light-blue "> <td>20元话费券</td> <td>20元话费券</td> <td class="thisOfferId">313310007201</td> <td>2022-05-01 16:00:56</td> <td>2022-06-01 00:00:00</td> </tr> </tbody> </table> </div> </div> <div id="detail_page" style="clear: both; float: right"> <div class='ui-paging'> <a href='javascript:void(0);' class='ui-button ui-button-sdisable'> <span class='glyphicon glyphicon-chevron-left'></span>上一页 </a> <a href='javascript:void(0);' onclick='AI.Ui.toLinkPage("linkType",5,"iPage",1,"iPara","","list-container","query-form","/ecrm/qryactivityplentyinfouser/QryActivityPlentyinfoUserAction/qryBussinessInfoTable.menu")' class='ui-paging-item ui-paging-current'>1</a> <a href='javascript:void(0);' onclick='AI.Ui.toLinkPage("linkType",5,"iPage",2,"iPara","","list-container","query-form","/ecrm/qryactivityplentyinfouser/QryActivityPlentyinfoUserAction/qryBussinessInfoTable.menu")' class='ui-paging-item'>2</a> <a href='javascript:void(0);' onclick='AI.Ui.toLinkPage("linkType",3,"iPage",1,"iPara","","list-container","query-form","/ecrm/qryactivityplentyinfouser/QryActivityPlentyinfoUserAction/qryBussinessInfoTable.menu")' class='ui-button ui-button-swhite'> 下一页<span class='glyphicon glyphicon-chevron-right'></span> </a> <span class='ui-paging-info'><span class='ui-paging-bold'>1/2</span>页,共9条</span> <span class='ui-paging-which'><input name='iPage' type='text'></span> <a class='ui-paging-info ui-paging-goto' href='javascript:void(0);' onclick='AI.Ui.toLinkPage("linkType",5,"iPage",2,"iPara","","list-container","query-form","/ecrm/qryactivityplentyinfouser/QryActivityPlentyinfoUserAction/qryBussinessInfoTable.menu",2)'>跳转</a> </div> </div> </div> </div> <div id="revokeDiv"></div> <script type="text/javascript"> $(function () { $(".thisRevoke").click(function () { $(this).siblings(".ui-bg-middle-grey").removeClass("ui-bg-middle-grey"); $(this).addClass("ui-bg-middle-grey"); var OfferId = $(this).find(".thisOfferId").html(); var data = { "OfferId": OfferId }; var url = _curActionUrlFull + '/queryDetailInfo.menu'; AI.Ajax.post(url, "revokeDiv", "", data, "", function (isSuccess) { if (isSuccess) { } } ); }); }); </script>