转眼人到中年:前端老程序员无法忘怀的一次百度电话面试 - 程序猿小卡的前端专栏 - SegmentFault



转眼人到中年:前端老程序员无法忘怀的一次百度电话面试 - 程序猿小卡的前端专栏 - SegmentFault

一个多小时的面试,问了很多问题,事后稍事整理记录了下来,主要是围绕JavaScript展开。

JS部分:

  1. JS是如何实现继承的?
  2. object的prototype是什么?(接上一个问题)
  3. JS如何实现数据以及功能的封装。(即类是如何实现的)
  4. 如果一个标签里面包含了10000个image,如何有效地对这10000个image实现事件绑定,比如说click事件。(考察事件冒泡机制)
  5. 假设现在有对象A、B,A对象绑定了S事件,如何对B对象也绑定S事件?(其实不清楚)
  6. 如何实现跨域请求?你知道的有多少种方法?各有什么优缺点?
  7. 当使用隐藏框架实现跨域请求时,如果框架页跟当前页不属于同个父域,是否可以实现跨域?
  8. 如何实现私有变量?说出一种方法即可。
  9. 函数闭包使用得多吗?什么情况下需要使用函数闭包?
  10. 当某个事件发生时,如果获得事件发生的对象。(ff和ie不同)
  11. 当绑定事件时,this指针指向的是?
  12. 当为document绑定事件时,this指针指向的是?
  13. 发送ajax请求有多少个步骤?如何判定发送成功?(readyState和onreadystatechange)
  14. 表示请求成功返回的状态码是多少?你还知道哪些状态码?分别表示什么意思?


Read full article from 转眼人到中年:前端老程序员无法忘怀的一次百度电话面试 - 程序猿小卡的前端专栏 - SegmentFault


No comments:

Post a Comment

Labels

Algorithm (219) Lucene (130) LeetCode (97) Database (36) Data Structure (33) text mining (28) Solr (27) java (27) Mathematical Algorithm (26) Difficult Algorithm (25) Logic Thinking (23) Puzzles (23) Bit Algorithms (22) Math (21) List (20) Dynamic Programming (19) Linux (19) Tree (18) Machine Learning (15) EPI (11) Queue (11) Smart Algorithm (11) Operating System (9) Java Basic (8) Recursive Algorithm (8) Stack (8) Eclipse (7) Scala (7) Tika (7) J2EE (6) Monitoring (6) Trie (6) Concurrency (5) Geometry Algorithm (5) Greedy Algorithm (5) Mahout (5) MySQL (5) xpost (5) C (4) Interview (4) Vi (4) regular expression (4) to-do (4) C++ (3) Chrome (3) Divide and Conquer (3) Graph Algorithm (3) Permutation (3) Powershell (3) Random (3) Segment Tree (3) UIMA (3) Union-Find (3) Video (3) Virtualization (3) Windows (3) XML (3) Advanced Data Structure (2) Android (2) Bash (2) Classic Algorithm (2) Debugging (2) Design Pattern (2) Google (2) Hadoop (2) Java Collections (2) Markov Chains (2) Probabilities (2) Shell (2) Site (2) Web Development (2) Workplace (2) angularjs (2) .Net (1) Amazon Interview (1) Android Studio (1) Array (1) Boilerpipe (1) Book Notes (1) ChromeOS (1) Chromebook (1) Codility (1) Desgin (1) Design (1) Divide and Conqure (1) GAE (1) Google Interview (1) Great Stuff (1) Hash (1) High Tech Companies (1) Improving (1) LifeTips (1) Maven (1) Network (1) Performance (1) Programming (1) Resources (1) Sampling (1) Sed (1) Smart Thinking (1) Sort (1) Spark (1) Stanford NLP (1) System Design (1) Trove (1) VIP (1) tools (1)

Popular Posts