iframe 相關
最近公司多了一個新的專案,其中有一個需求就是...
希望上傳檔案的電腦跟前台的電腦在不同的位置...
這樣一聽就知道勢必得使用iframe啦....
但...在本機測試時每次都抓不到iframe裡面的元素,console都會威脅你不讓你使用
後來設定他的domain就搞定了
document.domain = "@Request.Url.Host";
We all change, when you think about it, we're all different people; all through our lives, and that's okay, that's good, you've gotta keep moving, so long as you remember all the people that you used to be. I will not forget one line of this, not one day, I swear.