摘要:
$(document).ready( function() { var webSocket = {}; if ("WebSocket" in window){ //var webSocket = new WebSocket("ws://zhanlijue.natapp1.cc/vm-mobile-s 阅读全文
摘要:
在写vue的时候发现不能直接用this获取事件元素,这时候需要通过事件对象去获取,这里就需要去区分: event.target返回触发事件的元素 event.target返回触发事件的元素 event.currentTarget返回绑定事件的元素 坑死我了 擦 慎用!!!!!!!!!!!!!!!!! 阅读全文
摘要:
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="initial-scale=1.0, 阅读全文
摘要:
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="initial-scale=1.0, user-scalable=no 阅读全文
摘要:
第一步判断浏览器 if (/MicroMessenger/.test(window.navigator.userAgent)) { this.browserType = 1; //这里是微信浏览器 } else if (/AlipayClient/.test(window.navigator.use 阅读全文
摘要:
var arr=[{"itemId":null,"basicItemId":1228,"itemName":"维他柠檬…10ml","unit":null,"costPrice":null,"typeId":null}, {"itemId":null,"basicItemId":1228,"item 阅读全文
摘要:
默认运行 npm run dev 域名为localhost:8080 但是需要配置反向代理,这时候就需要去配置域名跟项目名 阅读全文
摘要:
在webpack.dev.conf.js中添加:disableHostCheck: true devServer: { public: 'local.kingsum.biz', clientLogLevel: 'warning', historyApiFallback: true, hot: tru 阅读全文
摘要:
一.组件的创建 需求 :在shop.vue组件中使用shopList组件 1.创建shopList.vue组件 2.在shop.vue中导入shopList组件 import shopList from "./shopList.vue" 3.定义组件 export default { data () 阅读全文