这个if else语句中的错误是什么 [英] what the error in this if else statement
本文介绍了这个if else语句中的错误是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
电子邮件:< 输入 type = text 名称 = email {!!((输入:: old( 'email')) ? 'value = '。输入::旧('电子邮件')。' ':'' !!} >
我很高兴由于此代码而导致错误。有人能告诉我这是什么错误吗?
解决方案
你有一个缺少的括号......
分解它看:
{!!
(
(
输入::旧(' email' )
)?
' value =' .Input :: old( ' email')。' ':' '
< span class =code-comment> // 这里缺少括号
!!}
Email:<input type="text" name="email" {!!((Input::old('email')) ? 'value="'.Input::old('email') .'"':'' !!}>
I am getting error because of this code. Can someone tell me whats the error?
解决方案
You have a missing closing-parenthesis...
Break it down to see:
{!! ( ( Input::old('email') ) ? 'value="'.Input::old('email') .'"':'' // here a missing parenthesis !!}
这篇关于这个if else语句中的错误是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文