Using mpvue to develop small programs how to define global variables

After we created the mpvue project, we found src/main.js and added a line of code behind it. (Note: cannot be added before const app = new Vue (App). Vue.prototype.globalData = getApp().globalData This line of code means that the global variables of the applet are mounted on the Vue prototype so that we can get the global data on different pages Different pages can be acquired or modified by this.globalData. For example, I need to store some basic information of users. this.globalData.userInfo = {name:aaa} Different pages get the same way. console.log(this.globalData.userInfo.name) modify...

CAP 2.3 release, support MongoDB

background story In the 2.3 version, we made some adjustments to Api. Why do we make these adjustments? I’ll talk about this process. I believe that all of you who are using CAP know that there is a Bug in 2.2 and previous versions that persists messages to the database in the case of transactions and if no transactions have been committed, then the CAP will start sending messages to the message queue, but one question askedThe problem is that if the next transaction fails to commit, then the message has actually been sent, and the consumer receives the message, corresponding to the Gi...

The tenth chapter is the foundation of neural network.

The first10chapterNeural network foundation       In this chapter, we will further study the foundation of neural networks. We’ll start by discussing artificial neural networks and how they can be inspired by real biological neural networks in our own bodies. After that, we will review the classic perceptron algorithm (P).Erceptron algorithm) and its role in the history of neural networks.       A perceptron is constructed, and we will learn the back propagation algorithm, which is the cornerstone of modern neural networks. We will use Python to implement the BP algorithm from...

HTML tag marquee to achieve rolling effect

Using & lt; marquee & gt; & lt; / marquee & gt; can achieve a variety of scrolling effects without JS control; using this tag can not only move text, but also certain pictures, tables and so on. 1、Grammar: <marquee>Scroll content < /marquee> Add contents to scroll between labels. 2、Important attributes: (1)Scroll direction direction (including 4 values: up, down, left and right); (2)Rolling mode behavior;   1>  scroll:Cycle rolling, default effect;   2> slide:Just stop rolling once.   3> alternate:Roll back and forth. ...

Several common ways to remove floating

1、Parent div defines pseudo classes: after and zoom <style type="text/css"> .div1{background:#000080;border:1px solid red;} .div2{background:#800080;border:1px solid red;height:100px;margin-top:10px} .left{float:left;width:20%;height:200px;background:#DDD} .right{float:right;width:30%;height:80px;background:#DDD} /*Clear floating code * /.clearfloat:after{display:block; clear:both; content: ""; visibility:hidden; height:0}.clearfloAt{zoom:1}< /style>< div class= "div1 clearfloat" >< div class= "left" > Left< /div>< div class= "right" > Right< /div&...

Installation of HSmartWindowControl (Visual Studio 2013 & Halcon 18)

1、Environmental introduction Visual Studio 2013Community Edition Halcon18.05 2、Using Nuget to install Halcon plug-in in VS project Search bar input keyword halcon, there are two plug-ins, Halcon language interface and Halcon engine, all installed. Note that the premise of using these two controls is that you have Halcon 18.05 installed on your computer and activated (you can use a trial license). 3、Install HSmartWindowControl controls in the toolbox Detailed installation instructions are available in Halcon’s help documentation: C:/Program Files/MVTec/HALCON-18.05-Progress/doc/h...

The solution to the error of installing Oracle Database 12C [INS-30131] on Windows 7 64bit

Label: com SRC http file, it La method, SP as Windows 7 64bitInstall Oracle Database 12C on it. The following error occurred:       Resolvent: Step 1: Control Panel & gt; All Control Panel Items & gt; Management Tools & gt; Service & gt; SERVER Startup Step 2: Control Panel & gt; All Control Panel Items & gt; Management Tools & gt; Computer Management & gt; System Tools & gt; Shared Folder & gt; Sharing   Right-click Share & gt; New Share & gt; Click “Next Step” & gt;   Click Browse ...