-
写出常用的bootstrap的样式。
table table-bordered table-striped table-hover active danger info success from-group from-control
checkbox radio has-error -
什么是响应式布局?
一个网站能够兼容多个终端,而不是为了每一个终端做一个特定的版本 -
请通过jQuery发送ajax请求。
KaTeX parse error: Expected '}', got 'EOF' at end of input: … phoneNo:(".tel").val()
},
success: function(data){
$.toast(“发送成功”, “text”)
},
error: function(){
$.toast(“发送失败”, “text”)
}
}) -
JavaScript与this相关的面试题(4分)
name = ‘老男孩’;info = { name:'alex', age:123, func:function(){ console.log(this.name); } } info.func() # alex name = '老男孩'; info = { name:'alex', age:123, func:function(){ console.log(this.name); function f1(){ console.log(this.name); } f1() } } info.func() # alex # 老男孩 name = '老男孩'; info = { name:'alex', age:123, func:function(){ console.log(this.name); (function(){ console.log(this.name); })() } } info.func() # alex # alex name = '老男孩'; info = { name:'alex', age:123, func:function(){ console.log(this.name); var xxx = this; (function(){ console.log(xxx.name); })() } } info.func() # alex # alex
-
什么是跨域?如何解决?
当一个请求url的协议,域名,端口三者之间任意一个与当前页面url不同即为跨域
1.设置document.domain解决无法读取非同源网页cookie问题
2.跨文档通信API:window.postMessage()
3.jsonp 只支持get请求,不支持post请求
4.CORS 是跨域资源分享(Cross-Origin Resource Sharing)的缩写。它是 W3C 标准,属于跨源 AJAX 请求的根本解决方法。 -
简述你对Http协议的理解?
http是一种网络数据传输协议,全称超文本传输协议。一般的传输流程是浏览器通过URL发送resquest请求,服务器放回response响应。特点是无状态,
Python web相关的一些题
最新推荐文章于 2021-05-04 00:17:29 发布