忍者ブログ

カレンダー

03 2024/04 05
S M T W T F S
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30

リンク

最新記事

カテゴリー

最新コメント

RSS

ブログ内検索

アーカイブ

[2]  [3]  [4]  [5]  [6]  [7]  [8

[PR]

×

[PR]上記の広告は3ヶ月以上新規記事投稿のないブログに表示されています。新しい記事を書く事で広告が消えます。

メタ文字一覧表

^   先頭
$  末尾
.  任意の1文字
+  1回以上の繰り返し
* 0回以上の繰り返し
?  0または1回の繰り返し
[] []のいずれかの1文字
()  グループ
|   OR

拍手[0回]

PR

MySQLカンペ

http://www.techscore.com/tech/sql/

CREATE TABLE  items(
  item_id          INT(10) ,                   #商品_id
  note                VARCHAR(1024)   #備考
);

insert into publisher
 (publisher_id,publisher_name)
VALUES
(1,'アニメ'),
(2,'ホビー'),
(3,'エンタ');

alter table order add company varchar(255) default null;

拍手[0回]

CSS覚書

http://www.tohoho-web.com/css/basic.htm

宣言
<style type="text/css">
<!--
P.red   { color: red; }
P.green { color: green; }
-->


.hoge  class
#hoge   id

拍手[0回]

配列の最後の要素かを調べる

$lastkey = end(array_keys($hash));
foreach ($hash as $key => $value) {
    if ($lastkey == $key) {
        ;
    }
}

拍手[0回]

DOM:要素の追加

document.createElement("br");      :<br/>を作れ
document.createTextNode("test"); :testというテキスト
document.getElementById('id').appendChild( document.createElement("br") );

■input タグの追加に関するメモ
inputタグにname、onclickの挙動がIEでは不安定。
ex) element.setAttribute(name, value)

私の打開策:inputタグを直打ちする
       var html = document.getElementById('id').innerHTML;
       html += "<input type="button" name="hoge" value="push!" />";
       document.getElementById('id').innerHTML = html;

ブラウザを意識せずに打開できるので、好きです。

拍手[0回]



忍者ブログ [PR]

graphics by アンの小箱 * designed by Anne