Android floating window speech recognition function development details
The author is an ordinary programmer who can no longer be ordinary. Based on his interest in provenance, he took the time to study and want to realize the floating window voice recognition function of mobile phone, which does not affect his other operations. The voice recognition technology uses Baidu cloud voice sdk, which should not be diffic ...
Posted by cute_girl on Sun, 05 Dec 2021 10:23:53 -0800
Advanced React components
Advanced react component
Introduction to component communication
A component is an independent and closed unit. By default, only the component's own data can be used. In the process of componentization, we split a complete function into multiple components to better complete the functions of the whole application. In this process, it is i ...
Posted by ursvmg on Sun, 05 Dec 2021 04:52:05 -0800
Non single file component of Vue component
Non single file component: a file contains n components
1, Components
Definition of component -- a collection of local function codes and resources in an application
Components:
Understanding: code set used to achieve local (specific) functional effects (html/css/js...)Why: the functions of an interface are complexFunction: ...
Posted by mazazino on Sun, 05 Dec 2021 04:37:04 -0800
119. Slot, mixin, global event bus
1. Slot
1. Default slot
Components that encapsulate slots
<ul>
<li>{{ title }}</li>
<slot></slot>
</ul>
Implementer of slot
<Com title="game">
<ul>
<li>Zhang San</li>
<li>Li Si</li>
<li>Wang Wu</li>
...
Posted by nocniagenti on Sun, 05 Dec 2021 04:27:03 -0800
Case: Web carousel map
z case: Web carousel map Also known as focus map
Functional requirements: When the mouse passes through the rotation chart module, the left and right buttons are displayed and the left and right buttons are hidden Click the button on the right once, and the picture will be played to the left once, and so on. The same is true for the left butto ...
Posted by Yeti on Sat, 04 Dec 2021 21:31:17 -0800
5 - parameter default value, implied global variable, precompiled
(1) . function parameter default value
Initialization parameter. If it is not set, the default value of the parameter is undefined
function test(a, b){
console.log(a);
console.log(b);
}
test(1);
// 1
// undefined
Do not pass arguments, set default values for row parameters
Only es6 supports formal parameter assignment
function test(a ...
Posted by airwinx on Sat, 04 Dec 2021 20:12:29 -0800
Hook rules and custom hooks
Hook rule
Use Hook only at the top
Do not call Hook in loops, conditions, or nested functions to ensure that they are always invoked at the top level of your React function. By following this rule, you can ensure that hooks are called in the same order in each rendering. This allows react to maintain the correct hook state between multipl ...
Posted by SyWill on Sat, 04 Dec 2021 18:57:34 -0800
JAVA - employment case ② (WEB comprehensive case)
target
Objective 1: be able to name three common paradigms of database design
Goal 2: be able to use PD tools for table structure design
Objective 3: complete the business development of discipline module
Objective 4: complete the business development of the directory module
Objective 5: complete the business development of the topic ...
Posted by AdamDowning on Sat, 04 Dec 2021 17:41:41 -0800
Basic list of Vue2.0 rendering
Once there is order in js, you have to use an array ([]) to store it Everyone in the array is an object ({}) Everyone must have a unique ID
Vue.config.productionTip = false
const vm = new Vue({
el: '#root',
data(){
return{
persons: [
{id: '001',name:'Zhang San',age: 18},
{id: '002',n ...
Posted by Techissue2008 on Sat, 04 Dec 2021 13:17:23 -0800
Vue3+Element-Plus Homepage Aside Layout Design 24
1. Layout design effect of left menu
2. Left Menu Layout Analysis
Menus are split into two levels and have a folding effect
3. Introduction to menu components used Menu | Element Plus (gitee.io)
el-menu The outermost layer of the entire left menu must be wrapped in a menu el-submenu Level 1 Menu ...
Posted by lostprophetpunk on Sat, 04 Dec 2021 11:20:17 -0800