Best JavaScript code snippet using tracetest
zhengzou-config.js
Source:zhengzou-config.js
1/**2 * Created by wisdom on 2017/8/30.3 */4export const zhengzhou = {5 CF: [6 {7 key: 'VariName',8 title: 'åç§'9 },10 {11 key: 'WarehouseNo',12 title: 'ä»åºç¼å·'13 },14 {15 key: 'WarehouseName',16 title: 'ä»åºå称',17 render: (h, params) => {18 if (params.row.ParentWName) {19 return h('div',20 {21 class: 'WarehouseNametextRight'22 }, '--' + params.row.WarehouseName)23 } else {24 return h('div',25 {26 class: 'WarehouseNametext'27 }, params.row.WarehouseName)28 }29 }30 },31 {32 key: 'YearRange',33 title: '年度'34 },35 {36 key: 'Level',37 title: 'ç级'38 },39 {40 key: 'AreaName',41 title: 'å°åº'42 },43 {44 key: 'PreWNum',45 title: 'æ¨æ¥ä»åé'46 },47 {48 key: 'NowWNum',49 title: 'ä»æ¥ä»åé'50 },51 {52 key: 'WNumChange',53 title: 'å¢å'54 },55 {56 key: 'Prediction',57 title: 'ææé¢æ¥'58 }59 ],60 FG: [61 {62 key: 'VariName',63 title: 'åç§'64 },65 {66 key: 'WarehouseNo',67 title: 'ä»åºç¼å·'68 },69 {70 key: 'WarehouseName',71 title: 'ä»åºå称',72 render: (h, params) => {73 if (params.row.ParentWName) {74 return h('div',75 {76 class: 'WarehouseNametextRight'77 }, '--' + params.row.WarehouseName)78 } else {79 return h('div',80 {81 class: 'WarehouseNametext'82 }, params.row.WarehouseName)83 }84 }85 },86 {87 key: 'PreWNum',88 title: 'æ¨æ¥ä»åé'89 },90 {91 key: 'NowWNum',92 title: 'ä»æ¥ä»åé'93 },94 {95 key: 'WNumChange',96 title: 'å¢å'97 },98 {99 key: 'Premium',100 title: 'åè´´æ°´'101 }102 ],103 JR: [104 {105 key: 'VariName',106 title: 'åç§'107 },108 {109 key: 'WarehouseNo',110 title: 'ä»åºç¼å·'111 },112 {113 key: 'WarehouseName',114 title: 'ä»åºå称',115 render: (h, params) => {116 if (params.row.ParentWName) {117 return h('div',118 {119 class: 'WarehouseNametextRight'120 }, '--' + params.row.WarehouseName)121 } else {122 return h('div',123 {124 class: 'WarehouseNametext'125 }, params.row.WarehouseName)126 }127 }128 },129 {130 key: 'Type',131 title: 'ç±»å«'132 },133 {134 key: 'Level',135 title: 'ç级'136 },137 {138 key: 'PreWNum',139 title: 'æ¨æ¥ä»åé'140 },141 {142 key: 'NowWNum',143 title: 'ä»æ¥ä»åé'144 },145 {146 key: 'WNumChange',147 title: 'å¢å'148 },149 {150 key: 'Premium',151 title: 'åè´´æ°´'152 },153 {154 key: 'Prediction',155 title: 'ææé¢æ¥'156 }157 ],158 LR: [159 {160 key: 'VariName',161 title: 'åç§'162 },163 {164 key: 'WarehouseNo',165 title: 'ä»åºç¼å·'166 },167 {168 key: 'WarehouseName',169 title: 'ä»åºå称',170 render: (h, params) => {171 if (params.row.ParentWName) {172 return h('div',173 {174 class: 'WarehouseNametextRight'175 }, '--' + params.row.WarehouseName)176 } else {177 return h('div',178 {179 class: 'WarehouseNametext'180 }, params.row.WarehouseName)181 }182 }183 },184 {185 key: 'Type',186 title: 'ç±»å«'187 },188 {189 key: 'Level',190 title: 'ç级'191 },192 {193 key: 'PreWNum',194 title: 'æ¨æ¥ä»åé'195 },196 {197 key: 'NowWNum',198 title: 'ä»æ¥ä»åé'199 },200 {201 key: 'WNumChange',202 title: 'å¢å'203 },204 {205 key: 'Premium',206 title: 'åè´´æ°´'207 },208 {209 key: 'Prediction',210 title: 'ææé¢æ¥'211 }212 ],213 MA: [214 {215 key: 'VariName',216 title: 'åç§'217 },218 {219 key: 'WarehouseNo',220 title: 'ä»åºç¼å·'221 },222 {223 key: 'WarehouseName',224 title: 'ä»åºå称',225 render: (h, params) => {226 if (params.row.ParentWName) {227 return h('div',228 {229 class: 'WarehouseNametextRight'230 }, '--' + params.row.WarehouseName)231 } else {232 return h('div',233 {234 class: 'WarehouseNametext'235 }, params.row.WarehouseName)236 }237 }238 },239 {240 key: 'PreWNum',241 title: 'æ¨æ¥ä»åé'242 },243 {244 key: 'NowWNum',245 title: 'ä»æ¥ä»åé'246 },247 {248 key: 'WNumChange',249 title: 'å¢å'250 },251 {252 key: 'Premium',253 title: 'åè´´æ°´'254 },255 {256 key: 'Prediction',257 title: 'ææé¢æ¥'258 }259 ],260 OI: [261 {262 key: 'VariName',263 title: 'åç§'264 },265 {266 key: 'WarehouseNo',267 title: 'ä»åºç¼å·'268 },269 {270 key: 'WarehouseName',271 title: 'ä»åºå称',272 render: (h, params) => {273 if (params.row.ParentWName) {274 return h('div',275 {276 class: 'WarehouseNametextRight'277 }, '--' + params.row.WarehouseName)278 } else {279 return h('div',280 {281 class: 'WarehouseNametext'282 }, params.row.WarehouseName)283 }284 }285 },286 {287 key: 'Level',288 title: 'ç级'289 },290 {291 key: 'IsTransgenosis',292 title: 'æ¯å¦è½¬åºå '293 },294 {295 key: 'PreWNum',296 title: 'æ¨æ¥ä»åé'297 },298 {299 key: 'NowWNum',300 title: 'ä»æ¥ä»åé'301 },302 {303 key: 'WNumChange',304 title: 'å¢å'305 },306 {307 key: 'Premium',308 title: 'åè´´æ°´'309 },310 {311 key: 'Prediction',312 title: 'ææé¢æ¥'313 }],314 PM: [315 {316 key: 'VariName',317 title: 'åç§'318 },319 {320 key: 'WarehouseNo',321 title: 'ä»åºç¼å·'322 },323 {324 key: 'WarehouseName',325 title: 'ä»åºå称',326 render: (h, params) => {327 if (params.row.ParentWName) {328 return h('div',329 {330 class: 'WarehouseNametextRight'331 }, '--' + params.row.WarehouseName)332 } else {333 return h('div',334 {335 class: 'WarehouseNametext'336 }, params.row.WarehouseName)337 }338 }339 },340 {341 key: 'YearRange',342 title: '年度'343 },344 {345 key: 'Level',346 title: 'ç级'347 },348 {349 key: 'PreWNum',350 title: 'æ¨æ¥ä»åé'351 },352 {353 key: 'NowWNum',354 title: 'ä»æ¥ä»åé'355 },356 {357 key: 'WNumChange',358 title: 'å¢å'359 },360 {361 key: 'Premium',362 title: 'åè´´æ°´'363 },364 {365 key: 'Prediction',366 title: 'ææé¢æ¥'367 }368 ],369 RI: [370 {371 key: 'VariName',372 title: 'åç§'373 },374 {375 key: 'WarehouseNo',376 title: 'ä»åºç¼å·'377 },378 {379 key: 'WarehouseName',380 title: 'ä»åºå称',381 render: (h, params) => {382 if (params.row.ParentWName) {383 return h('div',384 {385 class: 'WarehouseNametextRight'386 }, '--' + params.row.WarehouseName)387 } else {388 return h('div',389 {390 class: 'WarehouseNametext'391 }, params.row.WarehouseName)392 }393 }394 },395 {396 key: 'Type',397 title: 'ç±»å«'398 },399 {400 key: 'Level',401 title: 'ç级'402 },403 {404 key: 'PreWNum',405 title: 'æ¨æ¥ä»åé'406 },407 {408 key: 'NowWNum',409 title: 'ä»æ¥ä»åé'410 },411 {412 key: 'WNumChange',413 title: 'å¢å'414 },415 {416 key: 'Premium',417 title: 'åè´´æ°´'418 },419 {420 key: 'Prediction',421 title: 'ææé¢æ¥'422 }423 ],424 RM: [425 {426 key: 'VariName',427 title: 'åç§'428 },429 {430 key: 'WarehouseNo',431 title: 'ä»åºç¼å·'432 },433 {434 key: 'WarehouseName',435 title: 'ä»åºå称',436 render: (h, params) => {437 if (params.row.ParentWName) {438 return h('div',439 {440 class: 'WarehouseNametextRight'441 }, '--' + params.row.WarehouseName)442 } else {443 return h('div',444 {445 class: 'WarehouseNametext'446 }, params.row.WarehouseName)447 }448 }449 },450 {451 key: 'Type',452 title: 'ç±»å«'453 },454 {455 key: 'PreWNum',456 title: 'æ¨æ¥ä»åé'457 },458 {459 key: 'NowWNum',460 title: 'ä»æ¥ä»åé'461 },462 {463 key: 'WNumChange',464 title: 'å¢å'465 },466 {467 key: 'Premium',468 title: 'åè´´æ°´'469 },470 {471 key: 'Prediction',472 title: 'ææé¢æ¥'473 }474 ],475 RS: [476 {477 key: 'VariName',478 title: 'åç§'479 },480 {481 key: 'WarehouseNo',482 title: 'ä»åºç¼å·'483 },484 {485 key: 'WarehouseName',486 title: 'ä»åºå称',487 render: (h, params) => {488 if (params.row.ParentWName) {489 return h('div',490 {491 class: 'WarehouseNametextRight'492 }, '--' + params.row.WarehouseName)493 } else {494 return h('div',495 {496 class: 'WarehouseNametext'497 }, params.row.WarehouseName)498 }499 }500 },501 {502 key: 'PreWNum',503 title: 'æ¨æ¥ä»åé'504 },505 {506 key: 'NowWNum',507 title: 'ä»æ¥ä»åé'508 },509 {510 key: 'WNumChange',511 title: 'å¢å'512 },513 {514 key: 'Premium',515 title: 'åè´´æ°´'516 },517 {518 key: 'Prediction',519 title: 'ææé¢æ¥'520 }521 ],522 SF: [523 {524 key: 'VariName',525 title: 'åç§'526 },527 {528 key: 'WarehouseNo',529 title: 'ä»åºç¼å·',530 render: (h, params) => {531 if (params.row.WarehouseType === 'ä»åº') {532 return params.row.WarehouseNo533 } else {534 return params.row.FactoryWNo535 }536 }537 },538 {539 key: 'WarehouseName',540 title: 'ä»åºå称',541 render: (h, params) => {542 if (params.row.ParentWName) {543 if (params.row.WarehouseType === 'ä»åº') {544 return h('div',545 {546 class: 'WarehouseNametextRight'547 }, '--' + params.row.WarehouseName)548 } else {549 return h('div',550 {551 class: 'WarehouseNametextRight'552 }, '--' + params.row.FactoryWName)553 }554 } else {555 if (params.row.WarehouseType === 'ä»åº') {556 return h('div',557 {558 class: 'WarehouseNametext'559 }, params.row.WarehouseName)560 } else {561 return h('div',562 {563 class: 'WarehouseNametext'564 }, params.row.FactoryWName)565 }566 }567 }568 },569 {570 key: 'WarehouseType',571 title: 'ä»åº/ååº'572 },573 {574 key: 'PreWNum',575 title: 'æ¨æ¥ä»åé'576 },577 {578 key: 'NowWNum',579 title: 'ä»æ¥ä»åé'580 },581 {582 key: 'WNumChange',583 title: 'å¢å'584 },585 {586 key: 'Premium',587 title: 'åè´´æ°´'588 },589 {590 key: 'Prediction',591 title: 'ææé¢æ¥'592 }593 ],594 SM: [595 {596 key: 'VariName',597 title: 'åç§'598 },599 {600 key: 'WarehouseNo',601 title: 'ä»åºç¼å·',602 render: (h, params) => {603 if (params.row.WarehouseType === 'ä»åº') {604 return params.row.WarehouseNo605 } else {606 return params.row.FactoryWNo607 }608 }609 },610 {611 key: 'WarehouseName',612 title: 'ä»åºå称',613 render: (h, params) => {614 if (params.row.ParentWName) {615 if (params.row.WarehouseType === 'ä»åº') {616 return h('div',617 {618 class: 'WarehouseNametextRight'619 }, '--' + params.row.WarehouseName)620 } else {621 return h('div',622 {623 class: 'WarehouseNametextRight'624 }, '--' + params.row.FactoryWName)625 }626 } else {627 if (params.row.WarehouseType === 'ä»åº') {628 return h('div',629 {630 class: 'WarehouseNametext'631 }, params.row.WarehouseName)632 } else {633 return h('div',634 {635 class: 'WarehouseNametext'636 }, params.row.FactoryWName)637 }638 }639 }640 },641 {642 key: 'WarehouseType',643 title: 'ä»åº/ååº'644 },645 {646 key: 'PreWNum',647 title: 'æ¨æ¥ä»åé'648 },649 {650 key: 'NowWNum',651 title: 'ä»æ¥ä»åé'652 },653 {654 key: 'WNumChange',655 title: 'å¢å'656 },657 {658 key: 'Premium',659 title: 'åè´´æ°´'660 },661 {662 key: 'Prediction',663 title: 'ææé¢æ¥'664 }665 ],666 SR: [667 {668 key: 'VariName',669 title: 'åç§'670 },671 {672 key: 'WarehouseNo',673 title: 'ä»åºç¼å·'674 },675 {676 key: 'WarehouseName',677 title: 'ä»åºå称',678 render: (h, params) => {679 if (params.row.ParentWName) {680 return h('div',681 {682 class: 'WarehouseNametextRight'683 }, '--' + params.row.WarehouseName)684 } else {685 return h('div',686 {687 class: 'WarehouseNametext'688 }, params.row.WarehouseName)689 }690 }691 },692 {693 key: 'YearRange',694 title: '年度'695 },696 {697 key: 'Level',698 title: 'ç级'699 },700 {701 key: 'Brand',702 title: 'åç'703 },704 {705 key: 'PreWNum',706 title: 'æ¨æ¥ä»åé'707 },708 {709 key: 'NowWNum',710 title: 'ä»æ¥ä»åé'711 },712 {713 key: 'WNumChange',714 title: 'å¢å'715 },716 {717 key: 'Premium',718 title: 'åè´´æ°´'719 },720 {721 key: 'Prediction',722 title: 'ææé¢æ¥'723 }724 ],725 TA: [726 {727 key: 'VariName',728 title: 'åç§'729 },730 {731 key: 'WarehouseNo',732 title: 'ä»åºç¼å·'733 },734 {735 key: 'WarehouseName',736 title: 'ä»åºå称',737 render: (h, params) => {738 if (params.row.ParentWName) {739 return h('div',740 {741 class: 'WarehouseNametextRight'742 }, '--' + params.row.WarehouseName)743 } else {744 return h('div',745 {746 class: 'WarehouseNametext'747 }, params.row.WarehouseName)748 }749 }750 },751 {752 key: 'Brand',753 title: 'åç'754 },755 {756 key: 'PreWNum',757 title: 'æ¨æ¥ä»åé'758 },759 {760 key: 'NowWNum',761 title: 'ä»æ¥ä»åé'762 },763 {764 key: 'WNumChange',765 title: 'å¢å'766 },767 {768 key: 'Premium',769 title: 'åè´´æ°´'770 },771 {772 key: 'Prediction',773 title: 'ææé¢æ¥'774 }775 ],776 WH: [777 {778 key: 'VariName',779 title: 'åç§'780 },781 {782 key: 'WarehouseNo',783 title: 'ä»åºç¼å·'784 },785 {786 key: 'WarehouseName',787 title: 'ä»åºå称',788 render: (h, params) => {789 if (params.row.ParentWName) {790 return h('div',791 {792 class: 'WarehouseNametextRight'793 }, '--' + params.row.WarehouseName)794 } else {795 return h('div',796 {797 class: 'WarehouseNametext'798 }, params.row.WarehouseName)799 }800 }801 },802 {803 key: 'Type',804 title: 'ç±»å«'805 },806 {807 key: 'Level',808 title: 'ç级'809 },810 {811 key: 'PreWNum',812 title: 'æ¨æ¥ä»åé'813 },814 {815 key: 'NowWNum',816 title: 'ä»æ¥ä»åé'817 },818 {819 key: 'WNumChange',820 title: 'å¢å'821 },822 {823 key: 'Prediction',824 title: 'ææé¢æ¥'825 }826 ],827 ZC: [828 {829 key: 'VariName',830 title: 'åç§'831 },832 {833 key: 'FactoryWNo',834 title: 'ååºç¼å·'835 },836 {837 key: 'WarehouseName',838 title: 'ååºå称',839 render: (h, params) => {840 if (params.row.ParentWName) {841 return h('div',842 {843 class: 'WarehouseNametextRight'844 }, '--' + params.row.FactoryWName)845 } else {846 return h('div',847 {848 class: 'WarehouseNametext'849 }, params.row.FactoryWName)850 }851 }852 },853 {854 key: 'PreWNum',855 title: 'æ¨æ¥ä»åé'856 },857 {858 key: 'NowWNum',859 title: 'ä»æ¥ä»åé'860 },861 {862 key: 'WNumChange',863 title: 'å¢å'864 },865 {866 key: 'Premium',867 title: 'åè´´æ°´'868 }869 ],870 CY: [871 {872 key: 'VariName',873 title: 'åç§'874 }875 ],876 bu: [877 {878 key: 'VariName',879 title: 'åç§'880 },881 {882 key: 'WarehouseName',883 title: 'ä»åº/ååº',884 render: (h, params) => {885 if (params.row.ParentWName) {886 if (params.row.WarehouseName || params.row.WarehouseType === 'ä»åº') {887 return h('div',888 {889 class: 'WarehouseNametextRight'890 }, '--' + params.row.WarehouseName)891 } else {892 return h('div',893 {894 class: 'WarehouseNametextRight'895 }, '--' + params.row.FactoryWName)896 }897 } else {898 if (params.row.WarehouseName || params.row.WarehouseType === 'ä»åº') {899 return h('div',900 {901 class: 'WarehouseNametext'902 }, params.row.WarehouseName)903 } else {904 return h('div',905 {906 class: 'WarehouseNametext'907 }, params.row.FactoryWName)908 }909 }910 }911 },912 {913 key: 'WarehouseType',914 title: 'ä»åº/ååº'915 },916 {917 key: 'PreWNum',918 title: 'æ¨æ¥ä»åé'919 },920 {921 key: 'NowWNum',922 title: 'ä»æ¥ä»åé'923 },924 {925 key: 'WNumChange',926 title: 'å¢å'927 }928 ]...
CityMessageView.ts
Source:CityMessageView.ts
1/**2 * 3 * åå¸è®¯æ¯4 */5class CityMessageView extends egret.Sprite {6 private viewBg: egret.Bitmap;7 private msgContainer: egret.Sprite;8 constructor() {9 super();10 this.initView();11 }12 private initView() {13 this.viewBg = new egret.Bitmap();14 this.viewBg.texture = RES.getRes("msg_png");15 // this.viewBg.width = AdaptSceenUtil.curWidth();16 this.addChild(this.viewBg);17 this.msgContainer = new egret.Sprite();18 this.addChild(this.msgContainer);19 this.renderAirportMsg();20 }21 private updateView() {22 }23 public renderBanner() {24 }25 public renderPosition(buildingData) {26 this.msgContainer.removeChildren();27 switch (buildingData.id) {28 case BuildingEnum.AIRPORT:29 this.renderAirportMsg();30 break;31 case BuildingEnum.BANK:32 this.renderBankMsg();33 break;34 case BuildingEnum.BULLET_SCIENCE:35 this.renderScience();36 break;37 case BuildingEnum.GAS_STATION:38 this.renderStation();39 break;40 case BuildingEnum.INSURE_COMPANY:41 this.renderCompany();42 break;43 case BuildingEnum.DEFENSE:44 this.renderDefense();45 break;46 case BuildingEnum.REPAIR_FACTORY:47 this.renderFactory();48 break;49 }50 }51 /**52 * é£æºåºè¯¦ç»ä¿¡æ¯53 */54 private renderAirportMsg() {55 //建çç级56 let airportLevel = CityController.getInstance().getTopLevel(BuildingEnum.AIRPORT);57 let data: AirportData = BuildingDataCache.getInstance().getAirportDataByLevel(airportLevel);58 let nameText = new egret.TextField();59 nameText.text = i18n.getInstance().getLanguage(data.name);60 nameText.x = 10;61 this.msgContainer.addChild(nameText);62 let levelText = new egret.TextField();63 levelText.text = i18n.getInstance().getLanguage("ui_level") + airportLevel;64 levelText.x = 10 + nameText.width + 100;65 this.msgContainer.addChild(levelText);66 let scoreText = new egret.TextField();67 let descText = new egret.TextField();68 descText.text = i18n.getInstance().getLanguage(data.desc);69 descText.x = 10;70 descText.y = nameText.height;71 descText.width = this.viewBg.width - 40;72 descText.multiline = true;73 this.msgContainer.addChild(descText);74 let yoursText = new egret.TextField();75 }76 private renderBankMsg() {77 let block = CityController.getInstance().getBuildingBlockByType(BuildingEnum.BANK);78 //建çç级79 let bankLevel = CityController.getInstance().getTopLevel(BuildingEnum.BANK);;80 let data: BankData = BuildingDataCache.getInstance().getBankDataByLevel(bankLevel);81 let nameText = new egret.TextField();82 nameText.text = i18n.getInstance().getLanguage(data.name);83 this.msgContainer.addChild(nameText);84 let levelText = new egret.TextField();85 levelText.text = "ç级" + bankLevel.toString();86 levelText.y = nameText.height;87 this.msgContainer.addChild(levelText);88 let amout = CityController.getInstance().getBuildingNum(BuildingEnum.BANK);89 }90 private renderScience() {91 //建çç级92 let scienceLevel = CityController.getInstance().getTopLevel(BuildingEnum.BULLET_SCIENCE);;93 let data: BulletScienceData = BuildingDataCache.getInstance().getBulletScienceByLevel(scienceLevel);94 let nameText = new egret.TextField();95 nameText.text = i18n.getInstance().getLanguage(data.name);96 this.msgContainer.addChild(nameText);97 let levelText = new egret.TextField();98 levelText.text = "ç级" + scienceLevel.toString();99 levelText.y = nameText.height;100 this.msgContainer.addChild(levelText);101 let amout = CityController.getInstance().getBuildingNum(BuildingEnum.BULLET_SCIENCE);102 }103 private renderFactory() {104 //建çç级105 let factoryLevel = CityController.getInstance().getTopLevel(BuildingEnum.REPAIR_FACTORY);;106 let data: RepairFactoryData = BuildingDataCache.getInstance().getRepairFactoryByLevel(factoryLevel);107 let nameText = new egret.TextField();108 nameText.text = i18n.getInstance().getLanguage(data.name);109 this.msgContainer.addChild(nameText);110 let levelText = new egret.TextField();111 levelText.text = "ç级" + factoryLevel.toString();112 levelText.y = nameText.height;113 this.msgContainer.addChild(levelText);114 let amout = CityController.getInstance().getBuildingNum(BuildingEnum.REPAIR_FACTORY);115 }116 private renderCompany() {117 //建çç级118 let insureLevel = CityController.getInstance().getTopLevel(BuildingEnum.INSURE_COMPANY);;119 let data: InsureCompanyData = BuildingDataCache.getInstance().getInsureCompanyByLevel(insureLevel);120 let nameText = new egret.TextField();121 nameText.text = i18n.getInstance().getLanguage(data.name);122 this.msgContainer.addChild(nameText);123 let levelText = new egret.TextField();124 levelText.text = "ç级" + insureLevel.toString();125 levelText.y = nameText.height;126 this.msgContainer.addChild(levelText);127 let amout = CityController.getInstance().getBuildingNum(BuildingEnum.INSURE_COMPANY);128 }129 private renderDefense() {130 //建çç级131 let defenseLevel = CityController.getInstance().getTopLevel(BuildingEnum.DEFENSE);;132 let data: DefenseData = BuildingDataCache.getInstance().getDefenseByLevel(defenseLevel);133 let nameText = new egret.TextField();134 nameText.text = i18n.getInstance().getLanguage(data.name);135 this.msgContainer.addChild(nameText);136 let levelText = new egret.TextField();137 levelText.text = "ç级" + defenseLevel.toString();138 levelText.y = nameText.height;139 this.msgContainer.addChild(levelText);140 let amout = CityController.getInstance().getBuildingNum(BuildingEnum.DEFENSE);141 }142 private renderStation() {143 //建çç级144 let gasStationLevel = CityController.getInstance().getTopLevel(BuildingEnum.GAS_STATION);;145 let data: GasStationData = BuildingDataCache.getInstance().getGasStationByLevel(gasStationLevel);146 let nameText = new egret.TextField();147 nameText.text = i18n.getInstance().getLanguage(data.name);148 this.msgContainer.addChild(nameText);149 let levelText = new egret.TextField();150 levelText.text = "ç级" + gasStationLevel.toString();151 levelText.y = nameText.height;152 this.msgContainer.addChild(levelText);153 let amout = CityController.getInstance().getBuildingNum(BuildingEnum.GAS_STATION);154 }...
CM2.pac
Source:CM2.pac
1<?xml version="1.0"?>23<PacDesignData>45<DocFmtVersion>1</DocFmtVersion>6<DeviceType>ispPAC-CLK5410D</DeviceType>78<CreatedBy>PAC-Designer 6.1.0</CreatedBy>910<FuseMap>11111111110000000000111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111011111111111110111111111101001001100000111000111000000000000000000000000000000000000000000000000000000000000000000000000000000001000100010001000100010001000100010001111111111111101010101000000000000000000000000000000000000000000000000000100000100000000001111111100001111111111111111111111111111111111111111111111111111111111111111111111111101100100000000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111000000000000000000000000000000000000000000000000000000000000000000000000011111111111111111111111111111111</FuseMap>1112<SecurityFuse>0</SecurityFuse>1314<SummaryInformation>15<Title></Title>16<Subject></Subject>17<Author>Unknown User</Author>18<Keywords>ispPAC-CLK5410D</Keywords>19<Comments>20<![CDATA[212223]]>24</Comments>25</SummaryInformation>2627<GeneralPurposeLogicEnvOption>28 <PACMode>0</PACMode>29 <HDLMode>0</HDLMode>30 <PreferSynthesis>0</PreferSynthesis>31 <PROJName></PROJName>32 <PROJDIR></PROJDIR>33</GeneralPurposeLogicEnvOption>3435<RemoteFileList>36</RemoteFileList>3738<SymbolicSchematicData>39 <Symbol>40 <SymKey>153</SymKey>41 <NameText>Profile 0 Ref Frequency</NameText>42 <Value>200.0000MHz</Value>43 </Symbol>44 <Symbol>45 <SymKey>891</SymKey>46 <NameText>OEw</NameText>47 <Value>0</Value>48 </Symbol>49 <Symbol>50 <SymKey>892</SymKey>51 <NameText>OEx</NameText>52 <Value>0</Value>53 </Symbol>54 <Symbol>55 <SymKey>893</SymKey>56 <NameText>OEy</NameText>57 <Value>0</Value>58 </Symbol>59 <Symbol>60 <SymKey>894</SymKey>61 <NameText>OEz</NameText>62 <Value>0</Value>63 </Symbol>64 <Symbol>65 <SymKey>881</SymKey>66 <NameText>OE0</NameText>67 <Value>0</Value>68 </Symbol>69 <Symbol>70 <SymKey>882</SymKey>71 <NameText>OE1</NameText>72 <Value>0</Value>73 </Symbol>74 <Symbol>75 <SymKey>883</SymKey>76 <NameText>OE2</NameText>77 <Value>0</Value>78 </Symbol>79 <Symbol>80 <SymKey>884</SymKey>81 <NameText>OE3</NameText>82 <Value>0</Value>83 </Symbol>84 <Symbol>85 <SymKey>885</SymKey>86 <NameText>OE4</NameText>87 <Value>0</Value>88 </Symbol>89 <Symbol>90 <SymKey>886</SymKey>91 <NameText>OE5</NameText>92 <Value>0</Value>93 </Symbol>94 <Symbol>95 <SymKey>887</SymKey>96 <NameText>OE6</NameText>97 <Value>0</Value>98 </Symbol>99 <Symbol>100 <SymKey>888</SymKey>101 <NameText>OE7</NameText>102 <Value>0</Value>103 </Symbol>104 <Symbol>105 <SymKey>889</SymKey>106 <NameText>OE8</NameText>107 <Value>0</Value>108 </Symbol>109 <Symbol>110 <SymKey>890</SymKey>111 <NameText>OE9</NameText>112 <Value>0</Value>113 </Symbol>114 <Symbol>115 <SymKey>339</SymKey>116 <NameText>ispCLK Performance Grade</NameText>117 <Value>0</Value>118 </Symbol>119 <Symbol>120 <SymKey>596</SymKey>121 <NameText>ispCLK Feedback Output Pin</NameText>122 <Value>0</Value>123 </Symbol>124</SymbolicSchematicData>125126</PacDesignData>
...
Using AI Code Generation
1var tracetest = require('tracetest');2var name = tracetest.NameText();3console.log(name);4exports.NameText = function() {5 return "My name is Tracy";6}
Using AI Code Generation
1var tracetest = require('./tracetest.js');2var name = tracetest.NameText();3console.log(name);4exports.NameText = function() {5 return "Hello World";6};7var tracetest = require('./tracetest.js');8console.log(tracetest.NameText());9exports.NameText = function() {10 return "Hello World";11};12var tracetest = require('./tracetest.js');13console.log(tracetest);14exports.NameText = function() {15 return "Hello World";16};17var tracetest = require('./tracetest.js');18console.log(tracetest.NameText);19exports.NameText = function() {20 return "Hello World";21};22var tracetest = require('./tracetest.js');23console.log(tracetest.NameText());24exports.NameText = function() {25 return "Hello World";26};27var tracetest = require('./tracetest.js');28console.log(tracetest.NameText());29exports.NameText = function() {30 return "Hello World";31};
Using AI Code Generation
1var tracetest = require('./tracetest.js');2console.log(tracetest.NameText("John"));3exports.NameText = function (name) {4 return name;5}6var tracetest = require('./tracetest.js');7console.log(tracetest.NameText("John"));8exports.NameText = function (name) {9 return name;10}11var tracetest = require('./tracetest.js');12console.log(tracetest.NameText("John"));13exports.NameText = function (name) {14 return name;15}16var tracetest = require('./tracetest.js');17console.log(tracetest.NameText("John"));18exports.NameText = function (name) {19 return name;20}21var tracetest = require('./tracetest.js');22console.log(tracetest.NameText("John"));23exports.NameText = function (name) {24 return name;25}26var tracetest = require('./tracetest.js');27console.log(tracetest.NameText("John"));28exports.NameText = function (name) {29 return name;30}31var tracetest = require('./tracetest.js');32console.log(tracetest.NameText("John"));33exports.NameText = function (name) {34 return name;35}36var tracetest = require('./trac
Using AI Code Generation
1var tracetest = require('./tracetest.js');2console.log(tracetest.NameText("John"));3exports.NameText = function (name) {4 return name;5}6var tracetest = require('./tracetest.js');7console.log(tracetest.NameText("John"));8exports.NameText = function (name) {9 return name;10}11var tracetest = require('./tracetest.js');12console.log(tracetest.NameText("John"));13exports.NameText = function (name) {14 return name;15}16var tracetest = require('./tracetest.js');17console.log(tracetest.NameText("John"));18exports.NameText = function (name) {19 return name;20}21var tracetest = require('./tracetest.js');22console.log(tracetest.NameText("John"));23exports.NameText = function (name) {24 return name;25}26var tracetest = require('./tracetest.js');27console.log(tracetest.NameText("John"));28exports.NameText = function (name) {29 return name;30}31var tracetest = require('./tracetest.js');32console.log(tracetest.NameText("John"));t
Using AI Code Generation
1var tracetest = require('tracetest');2ameText();3xport.NmeTex= (){4conole.log('NTextcalle');5}6exports.NameText = function () {7 Thsconsol.log("")8xposNamex=(am){9cnso("Hllo"+);10};11xportsamText=unctin(na){12 cnsoe.("Hell " + nam);13};Thanks,14xportNmTx=func(){15 ns.log("Hello" + nm);16};17xptsNamext=fuco(a){18o.lg("Hl"+nm);19};20xos.NmTex= funin(m){21 cosl.og("Hll"+nm);22};23xpors.NmText= functo(nam){24 cosl.og("Hll"+nm);25};26expotsNamext=fucion (nm) {27 cos.log("Hll"+nm);28};29xptsNamext =functin(m) {30 cos.log("Hll"+nm);31};32xorts.NmeTx =ucn(m) {33 cos.log("Hll"+nm);34};35xos.NamTx =ucenx(o mm) {36 Tttcohs.log("Hll"+nm);37};38xos.NamTx =ucenn(mm) {39 cos.log("Hll"+nm);40};41xos.NamTx =ucn(m) {42 cos.log("Hll"+nm);43};44xos.NamTx =ucin(nm) {45var tracetest = require('./trac
Using AI Code Generation
1var tracetest = require('tracetest');2var text = tracetest.NameText('John');3console.log(text);4exports.NameText = function(name) {5 return "Hello " + name;6};
Using AI Code Generation
1var tracetest = require('tracetest');2var result = tracetest.NameText('test');3console.log(result);4var tracetest = {};5tracetest.NameText = function(name) {6 var text = 'Hello ' + name;7 return text;8};9module.exports = tracetest;
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!