이 기능의 의미를 알고 싶습니다. 아마추어입니다. 내가 아는이 함수는 무엇을 말하고 있습니까?
function get_cached_balance() {
var balance = "?";
if (localStorage['rumola:balance'])
balance = ""+localStorage['rumola:balance'];
return balance;
}
function update_cached_balance(b) {
localStorage['rumola:balance'] = b;
}
는 "get_cached_balance는"다른 곳에서 호출 할 수있는 함수의 이름입니다.
document.getElementById("purchase_a").innerHTML = chrome.i18n.getMessage("menu9").replace("?", w.get_cached_balance());
"?" 정보가
"menu9": { "message": "Purchase more credits (? remaining)"},
- 을 배치된다하지만 로컬 스토리지 및 rumola이 무엇인지 알 수 : 균형 곳을 찾아 정보를 수정하는 방법. 나머지 코드가 무엇을하는지 설명하십시오. 나에게는 생각이 있지만 100 % 확신 할 수는 없다.