「PHP」正規表現で文字列のスペースを削除する
1.文字列の先頭のスペース(半角、全角)を削除
$usernamer = preg_replace(‘/^+/u‘, ”, $username);
2.文字列の末尾のスペース(半 ...
「PHP」関数を書くサンプルコード
サンプルコード
<?php
function writeName()
{
echo “This is a test data”;
}
echo R ...
「TypeScript」関数を書くサンプルコード
//返り値がある
function add(a: number, b: number): number{
//some code
return a + b
}
//返り値がない
fu ...
「Struts」html:radioタグを利用するサンプル
サンプルコード
<html:radio property=”city” value=”oosaka”/>大阪
<html:radio property= ...
Gitea 1.11.0 ダウンロード
更新内容
In this release, we’ve merged 481 pull requests. That’s the highest amount since 1.2.0 (483)!
Special ...
「Spring」c:forEach タグを利用するサンプル
JAVAコード
List cftLst = new ArrayList();UserBean userBean = new UserBean();userBean.setSchool("東京大学");userBean.setAd ...「struts」html:multiboxタグを利用するサンプル
サンプルコード1
<html:multibox property=”city” value=”oosaka”/>大阪
<BR>
<h ...
Cygwin 3.1.4ダウンロード
更新内容
– Allow symlinks to be opened with O_PATH | O_NOFOLLOW
– Allow the pathname argument to re ...
ImageMagick 7.0.9-24ダウンロード
概要
Use ImageMagick® to create, edit, compose, or convert bitmap images. It can read and write images in a varie ...
Rocket.Chat 3.0.1ダウンロード
更新内容
UiKit not updating new actionIds received as responses from actions (#16624)Regression: Jitsi on external ...
[Java]FileInputStreamとBufferedInputStreamでpdfファイルを読み込む
ServletOutputStream
バイナリデータをクライアントに送信するための出力ストリームを提供します。ServletOutputStream オブジェクトは、通常 ServletResponse.getOutputS ...
「Java」ServletContextクラスのgetRealPath()で絶対パスを取得する
関数
public String getRealPath(String path);
絶対パスを返します。
使用例
ServletContext context = this.getServletCo ...Node.js 13.9.0 ダウンロード
更新内容
async_hooksadd executionAsyncResource (Matteo Collina) #30959cryptoadd crypto.diffieHellman (Tobias N
Eclipseのプラグインの自動更新を停止する方法
操作方法
1.「ウインドウ」->「設定」->「インストール/更新」をクリックします。
2.「自動更新」->「自動的に新規更新を検索し通知」チェックを外す
3.「適用して閉じる」をクリックします ...
「struts」bean:writeタグを利用するサンプル
属性
name:bean名を指定する
property:プロパティ名を指定
format:フォーマットを指定する
1.値の形式
<bean:write name=”mana ...
「jQuery」 slideDown()で隠れた要素を縦方向に表示する
slideDown(, )
各要素の高さを操作して、上から下にスライドして降りて来るイメージの効果で表示させます。
サンプルコード
<!DOCTYPE html><html><h ...Istio 1.4.5ダウンロード
更新内容
Fixed a bug triggered by node restart causing Pods to receive incorrect configuration (Issue 20676).Impro ...
「JavaScript」getElementsByNameで指定属性の値を取得、設定する
書式
変数名 = document.getElementsByName(属性名);
変数名.value===xxx
変数名.style.background=xxx
使用例