2019年5月28日 星期二

[Juqery]動態刪除table tr

<table>
    <thead>
        <tr>
            <th style="width: 1%">
                test
            </th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>
                <a href="#" onclick="Delete(this)">
                    刪除
                </a>
                <a href="#" onclick="Delete(this)">
                    刪除
                </a>
                <a href="#" onclick="Delete(this)">
                    刪除
                </a>
            </td>
        </tr>
    </tbody>
</table>
function Delete(_this) { _this.closest('tr').remove(); }

2019年5月27日 星期一

[Excel]取括弧內文字

J2欄 = (test) =MID(J2,FIND("(",J2,1)+1,FIND(")",J2,1)-FIND("(",J2,1)-1) 取出來為 test

Visual Studio JS intellisense 失效解決方式

  試了好久,發現到工具>選項>IntelliCode js項目設定啟用,重新開啟VS就正常了! 後來發現是TypeScript3.2版有問題停用,使用4.3版的TypeScript即可