Tag:Value transfer

  • Rich resolution scenarios of where query conditions in eloquent ORM

    Time:2021-7-17

    Personal feelingsEloquent ORMOfwhereThe scenario of conditional parsing is not so rich, and many conditional assemblies need to introduce additional conditionsorWhere, whereNotIn, whereBetween, whereNotBetweenTo assist in this. This is not very friendly when doing some abstract bottom query methods, and the query conditions passed by the upper layer are uncertain. If you can flexibly parse all […]

  • The usage and difference of delegation and notification

    Time:2021-7-16

    Low coupling is a characteristic of good programs. The low coupling program has better readability and maintainability. The delegation and notification functions in cocoa can make low coupling easier to implement. The following describes how to use delegation and notification to transfer values, and the difference between delegation and notification. 1. Delegate value transfer Delegate […]

  • Component development of Vue

    Time:2021-7-3

    By jeskson Nuggets| https://juejin.im/user/5a16e1… To learn component-based development, we should first master the idea of component-based development, the way of component registration, the way of data interaction between components, the usage of component slot, the usage of Vue mode tool, and the way of component to realize business logic functions. Component development idea, component registration, […]

  • Vuex perfect solution for Vue eventbus

    Time:2021-6-23

    problem Communication problems of multiple components Eventbus transfers values, which will lead to repeated interface calls I think that eventbus is specialized in dealing with the communication between sibling components, but in fact, eventbus is specialized in dealing with the communication between complex components under the same route.If it involves routing component communication. Consider using […]

  • Vue case: todolist

    Time:2021-6-10

    ToDoList requirement Objective: Display an input box, a button Input the content in the input box, click the button to display the content in the page, and then the input box will return to blank To fully understand this little demo, you need some prerequisites: vueBasic instruction Preliminary understandingJavaScriptScope in andthiskeyword Usage of Vue global […]

  • 🍖 Template layer of Django framework

    Time:2021-6-7

    1、 Two template methods Variable correlation:{{ }} Logical correlation:{% %} 2、 Notes Comments are the mother of code:{# #} 3、 Value transfer in template grammar 1. Value transfer of basic data type in Python def test_func(request): S = “Hello, big star!” i = 1314520 f = 1.75 l = [1,2,3,4,5] d = {“name”:”shawn”,”age”:23} t = […]

  • 🍖 Template layer of Django framework

    Time:2021-6-7

    1、 Two template methods Variable correlation:{{ }} Logical correlation:{% %} 2、 Notes Comments are the mother of code:{# #} 3、 Value transfer in template grammar 1. Value transfer of basic data type in Python def test_func(request): S = “Hello, big star!” i = 1314520 f = 1.75 l = [1,2,3,4,5] d = {“name”:”shawn”,”age”:23} t = […]

  • NPM (nodejs package manager), webpack, Vue components, Vue scaffold development tools, the use of Vue router, the use of vuex, the use of Django front-end and back-end interaction

    Time:2021-6-7

    13.8 npm(nodejs package manager) Use the command line to install the package: 1. Switch the CD to the project directory and execute the initialization operation NPM init / NPM init – Y 2. Install other dependent packages npm install jquery npm install [email protected] NPM install jQuery – G global installation npm install [email protected] -Under the […]

  • 🍖 Template layer of Django framework

    Time:2021-6-6

    1、 Two template methods Variable correlation:{{ }} Logical correlation:{% %} 2、 Notes Comments are the mother of code:{# #} 3、 Value transfer in template grammar 1. Value transfer of basic data type in Python def test_func(request): S = “Hello, big star!” i = 1314520 f = 1.75 l = [1,2,3,4,5] d = {“name”:”shawn”,”age”:23} t = […]

  • Uni app development experience sharing 1: three solutions of multi page value transfer

    Time:2021-6-3

    After one year’s development of uni app, this paper summarizes some problems in the development of uni app, and provides several solutions to share with you Problem Description: one main page needs to connect one or two sub pages, the sub page transfers the value to the main page, and the main page is updated […]

  • Vue + elementui project practice 1

    Time:2021-4-15

    Visualizing new projects Open the visualization panel vue ui Create project You can save it as a preset, and you don’t need to configure it again the next time you use it After the creation, we can see its file structure Initial experience of vue3 The entry file is in public, not in the root […]

  • Data transfer between Android activities

    Time:2021-4-12

    1、 Transfer value of activity through startactivity In Android, if we want to start another activity through one activity, we can use startactivity (intent) In this way, we can precisely specify the activity that we want to jump to, or specify an action operation that we want to complete through the intent object. At the […]