尚未宣告或未給初始值
var filePath;//已宣告 但沒給初始值 var tmpFilePath = []; if(filePath === undefined){ $.each(filePath, function (index, dataOrg) { tmpFilePath.push(dataOrg); }); }
尚未宣告或未給初始值
var filePath;//已宣告 但沒給初始值 var tmpFilePath = []; if(filePath === undefined){ $.each(filePath, function (index, dataOrg) { tmpFilePath.push(dataOrg); }); }
有鑒於前手不會md5,所以特地寫一篇前端md5實作
登入頁面密碼需要編碼 閱讀全文 Frond-End password md5
this代表目前的DOM對象
$(this)代表我們用jQuery所選取的jQuery對象
$(“div”).each(function(){
this.xxx
$(this).html()
});
this指的是html元素的”div”
$(this)則是指jQuery的物件
Ajax response console show
XMLHttpRequest cannot load http://127.0.0.1:8080/jerseyStock/services/stockJersey/getStock?stock_id=0050&stock_name=. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost:8080’ is therefore not allowed access.
Create a new filter, which will set the header response
Edit web.xml add those lines