as shown in the figure, the this.Ctx.Input.Param (": pag") in the beego framework clearly returns string, but why does the error prompt say int?
add:
Thank you for answering, because this is often written in js and php, and I don"t think there"s anything wrong with this way of writing in the screenshot at all.
and the error prompt puzzles me all the time (mainly because my English is too poor). I always thought it suggested that the data type of the parameter passed in was incorrect, but it turned out that the data type of the assignment was incorrect.
pag:=this.Ctx.Input(":pag");//pag string
pag=functions.ToInt(page);// int string pag