Tony's Blogger
2017年5月19日 星期五
Angular2 字串連接
在 Angular2 中
當字串連接的時候 使用 ` 來取代 '
就可以不用多打字串連接的加號
例如
'<div></div>'+
'<div></div>'
↓
`<div></div>
<div></div>`
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
remove last word from SQL query
SET @columnSql = SUBSTRING ( @columnSql , 1 , LEN ( @columnSql ) - 1 )
Visual Studio 無法叫用中斷點
解決 Visual Studio 無法叫用中斷點 原始程式碼與原始版本不同 1.把 Visual Studio 關掉 2.把專案中的 bin obj 資料夾刪掉 3.重開 Visual Studio 並建置 完成
javascript 特殊符號轉換
function htmlEscape ( str ) { return str . replace ( /&/ g , '&' ) . replace ( /"/ g , ...
Kendo Grid 修改刪除按鈕與功能
columns: [ { field: "FirstName", title: "First Name" }, { field: "LastName", title: ...
沒有留言:
張貼留言