-
PHPで商を求める方法
floor($a / $b); -
【MySQL】レコードの途中から取得する
select * from table_name LIMIT row_count OFFSET offset; select * from table_name LIMIT offset, row_count; https://dev.mysql.com/doc/refman/8.0/ja/select.html -
【jQuery】thisの子要素を取得する方法
$(this).chidren("xxx"); $(this).find("xxx"); -
PythonでMySQLを利用する方法
pip install mysql-connector-python project % pip install mysql-connector-python Collecting mysql-connector-python Downloading mysql_connector_python-9.0.0-cp311-cp311-macosx_13_0_arm64.whl.metadata (2.0 kB) Downloading mysql_connector_py... -
Beautiful Soupで属性値を取得する方法
<div id="origin" class="root"> <a href="xxx">xxx</a> </div> id = obj['id'] // idを取得 class = obj['class'] // classを取得 href = obj['href'] // これはできない -
canvasタグの使い方
canvasタグはJavaScriptで操作します。 <body onload="draw();"> <canvas id="canvas" width="xxx" height="xxx"></canvas> </body> function draw() { let canvas = document.querySelector("#canvas"); if (canvas.getContext) { let ctx = ... -
Array.splice()の処理
Array.splice(k, 1); // k番目の要素を1つ削除 Array.splice(k, 0, h); // k番目に要素hを追加 -
【JavaScript】slice()の処理
Array.slice() // シャローコピーを作成 ※参照元が共有される -
【jQuery】eachの処理
$.each(array, function (index, value) { // 処理 }); -
MAMPで.htaccessファイルを利用する方法
/Applications/MAMP/conf/apacheにあるhttpd.confを開きます。 219〜230行目にある次のコードを探します。 # # Each directory to which Apache has access can be configured with respect # to which services and features are allowed and/or disabled...