約26,900件1ページ目

条件を指定して検索しています。すべての条件を解除する

  • 対象とする言語:日本語
  • 2026/5/23 -静的メソッドは多くの場合、オブジェクトの生成や複製を行う関数などのユーティリティ関数です。静的プロパティはキャッシュ、固定的な構成、その他の各 ...

    A function or object is declared with file static or narrower scope, but is not used within the scope of the declaration. See also Unused Variable. This ...

    2018/2/28 -もし、 test.a を変数 a に代入して利用したい場合、変更を加えた変数 a を最後に test.a に代入すれば解決します。 変数aに格納したい時の正しいやり方.

    2020/5/13 -例えば次のような処理を考えてみます。 名前と身長と体重を与えると、その人のBMIがメソッドにより出力されるというものです。

    Limiting the amount of function parameters is incredibly important because it makes testing your function easier. Having more than three leads to a ...

    2026/10/30 -メソッドとは、クラスやオブジェクトに属している関数のことです。関数は単独で呼び、メソッドは a.increment() のように「どのオブジェクトの処理 ...

    static function setCacheControl($ttl = 0, $public = true); set Cache-Control header; static function setCorsPolicy(string $origin = '*', array $methods ...

    2023/8/28 -Javascript のクラス内 static 変数. Javascript のクラス内 static 変数は、class スコープの外側で定義できます。 class 内からでも参照可能です。

    This allows you to insert variables into your project's JavaScript from Python. For example, the following code will read in a user-configured value and then ...

    static変数は、その変数を含むファイル内でのみアクセス可能なため、特定のファイル内でのみアクセス可能です。一方、グローバル変数はファイル外からもアクセスできます。