嗨,我在浏览器中运行代码时收到此错误:
TypeError: Object(...) 不是函数 ./src/index.js src/index.js:31
28 | firebaseStateName: 'firebase' 29 | 30 | const initialState = {};
31 | const store = createStore(rootReducer,initialState, 32 | compose( 33 | applyMiddleware(thunk.withExtraArgument({ getFirebase, getFirestore })), 34 | reactReduxFirebase(firebase, config),
我尝试使用事物库:
http://docs.react-redux-firebase.com/history/v3.0.0/docs/integrations/thunks.html
然而仍然没有成功:/
在我的 index.js 文件下面
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
import { createStore, applyMiddleware, compose } from 'redux'
import rootReducer from './store/reducers/rootReducer'
import { Provider } from …Run Code Online (Sandbox Code Playgroud) 如果记录存在,我想在我的C#应用程序中进行额外的控制.
我有以下代码 - 但它仍然返回-1的结果,即使该记录确实存在于SQL Server数据库中.
有人可以帮我弄这个吗?我添加了 - >出错的地方
private void btnVerwijderen_Click(object sender, RoutedEventArgs e)
{
if (autonrTextBox.Text == "")
{
MessageBox.Show("Waarschuwing u kunt geen auto verwijderen indien er GEEN autonr is ingevuld");
}
else
{
--> SqlConnection con = new SqlConnection(@"Data Source=DESKTOP-RSEBNR7;Initial Catalog=AudiDealer;Integrated Security=True");
--> string check = "SELECT autonr FROM auto WHERE autonr =@autonr";
--> SqlCommand command1 = new SqlCommand(check, con);
--> command1.Parameters.AddWithValue("@autonr", autonrTextBox.Text);
con.Open();
int auto = command1.ExecuteNonQuery();
con.Close();
--> X - 1 MessageBox.Show(auto.ToString());
if (auto > 0) …Run Code Online (Sandbox Code Playgroud)