BYS推荐MS前端PhoneCall面试问题整理-1
生活随笔
收集整理的這篇文章主要介紹了
BYS推荐MS前端PhoneCall面试问题整理-1
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1.?SQL:
查出產品對應的銷售數量,會用到2個表之間的連接:
select Products.ProductName, Sales.SalesAmount from Product left outter join Sales
where Productes.ProductId=Sales.ProductId order by Sales.SalesAmount desc
?
2. JS:
寫一個函數對數組元素進行輸入,中間加上空格:
for (var i=0; i<cars.length;i++)
{
document.write(cars[i]+"<br>");
}
?
3. JS:
用prototype對已有對象方法進行擴展:
String.prototype.Hello=function () {
return this.Appned
};
?
4. JS:
考察JS中||的特殊應用:
String.prototype.repeat = String.prototype.repeat || function(times) {/* code here */};
轉載于:https://www.cnblogs.com/researcher/p/5496165.html
總結
以上是生活随笔為你收集整理的BYS推荐MS前端PhoneCall面试问题整理-1的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Linux Bash终端支持中文显示
- 下一篇: Java并发机制深究1-synchron