![](https://img-blog.csdnimg.cn/2019092715111047.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
前端
本栏主要记录前端开发时遇到的问题或者知识点,包含的前端语言有HTML,JS,VUE等。
天天-top
小白一枚
展开
-
node.js套接字socket
var net = require('net')// 1. 创建socket对象var client = new net.Socket()// 2. 连接通信// HOST:要连接的地址// PORT:要连接的对象给的端口client.connect(PORT, HOST, function () { log.info('Connected to ' + HOST + ':' + PORT)})// 3. 监听连接对象返回的数据dataclient.on('data', funct.原创 2020-07-22 10:01:03 · 268 阅读 · 0 评论 -
使用Bootstrap实现标签页
使用bootstrap实现标签页,并在切换标签的时候show正确的内容原创 2020-07-08 10:49:22 · 807 阅读 · 0 评论 -
HTML iframe 内嵌网页
1. HTML<iframe src="https://cn.bing.com/" width="100%" height="500px"></iframe>2. 请求URL显示错误: Refused to display 'http://127.0.0.1:8000/show/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.X-Frame-Options:https://developer原创 2020-07-02 15:32:43 · 4005 阅读 · 0 评论 -
前端Vue知识点
1. vue.runtime.esm.js:619 [Vue warn]: Error in v-on handler: "TypeError: date.getFullYear is not a function"在使用 date.getFullYear() 之前忘记添加一句date = new Date(date)然后就可以继续了Vue格式化时间://格式化日期fun...原创 2020-05-07 18:11:07 · 322 阅读 · 0 评论 -
JS发送XMLHttpRequest请求
在JS中发送请求可以使用XMLHttpRequestvar request = new XMLHttpRequest();request.open('POST', request_url);request.setRequestHeader("Content-type","application/json");send_data = {'url': url, 'name': "zhang...原创 2019-06-17 18:15:09 · 14246 阅读 · 0 评论