<select v-model="subclass" @change="onSelectSub" onblur="size=0" onmousedown="if(options.length>3){size=4}"onchange="size=0" class="select-frame"> <option v-for="(option,index) in options1" :key="index" :value="option.value">{{option.label}}</option> </select> onSelectSub(){ console.log(this.subclass) axios.get("http://localhost:9091/Classification/selectOrderBySuborder/"+this.subclass).then(function (response){ console.log(this.subclass) console.log(response.data); // if(response.data){ // alert("修改成功"); // window.location.href = 'login.html'; // } this.options2=response.data; }).catch(function (error){ console.log(error) })
时间: 2024-04-02 09:36:33 浏览: 277
这段代码是关于前端页面的一个下拉选择框,选中其中一个选项后,将会调用onSelectSub方法。在该方法中,会使用axios库向后端发送一个get请求,并传递一个参数this.subclass。请求成功后,会将返回的数据赋值给options2,用于更新下拉框中的选项。其中,console.log用于输出相关信息以进行调试。
相关问题
anifest xmlns:android="http://schemas.android.com/apk/res/android" package="me.maxandroid.trip"> <!-- io.flutter.app.FlutterApplication is an android.app.Application that calls FlutterMain.startInitialization(this); in its onCreate method. In most cases you can leave this as-is, but you if you want to provide additional functionality it is fine to subclass or reimplement FlutterApplication and put your custom class here. --> <application android:label="trip" android:icon="@mipmap/ic_launcher"> <activity android:name=".MainActivity" android:launchMode="singleTop" android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize"> <!-- This keeps the window background of the activity showing until Flutter renders its first frame. It can be removed if there is no splash screen (such as the default splash screen defined in @style/LaunchTheme). --> <meta-data android:name="io.flutter.app.android.SplashScreenUntilFirstFrame" android:value="true" /> <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> </activity> </application> </manifest>
这是一个 Android 应用程序的清单文件。它描述了应用程序的名称、图标、主要活动和其他配置信息。其中,应用程序的包名为 "me.maxandroid.trip",主要活动为 ".MainActivity",应用程序的标签为 "trip",图标为 "@mipmap/ic_launcher"。此外,该清单文件还指定了应用程序的启动模式、主题、配置更改、硬件加速等信息。
List<RowStyle> rowStyles = new ArrayList<>();
This line of code creates a new ArrayList object called "rowStyles" that can hold objects of type "RowStyle". The "<>" notation indicates that this is a generic ArrayList, meaning it can hold any type of object as long as it is a subclass of "RowStyle". The "List" interface is implemented by ArrayList, which means that ArrayList can be used in any context where a List is expected.
阅读全文