String format 확장 제거

This commit is contained in:
2021-08-27 03:53:15 +09:00
parent 4f1f87bda0
commit def0a52578
9 changed files with 41 additions and 44 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ declare const currentCrew: number;
//declare const currentGold: number;
declare const is모병 = false;
function calc(id: number) {
const $obj = $('#crewType{0}'.format(id));
const $obj = $(`#crewType${id}`);
const crew = parseInt(unwrap_any<string>($obj.find('.form_double').val()));
const baseCost = $obj.data('cost');
const $cost = $obj.find('.form_cost');